Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
28% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
3
Posts with Downvotes
2
Downvoting Members
3
0 Endorsements
Ranked #4K
~5K People Reached
About Me

Wanna go back to Indonesia, but its so damn expensive, any donations would be appreciated :P hehe

Favorite Forums

11 Posted Topics

Member Avatar for cool_zephyr

Just make a server with ServerSocket listening in on a port specified by you. and the client will connect to this server socket and send some data through the socket. Http server is also just like any other server but it listens on port 80 and only accepts Get and …

Member Avatar for cool_zephyr
1
298
Member Avatar for efronefron

Server Code [CODE]import java.io.DataInputStream; import java.io.DataOutputStream; import java.net.ServerSocket; import java.net.Socket; /** * * @author efron */ public class Server { public static void main(String[] args) { try { ServerSocket serverSocket = new ServerSocket(Integer.parseInt("49999")); System.out.println(serverSocket.getLocalPort()); while (true) { System.out.println("Waiting for Client...(port = " + 49999 + ")"); Socket acceptSocket = serverSocket.accept(); …

Member Avatar for ~s.o.s~
0
1K
Member Avatar for efronefron
Member Avatar for efronefron

the problem is if you increase buff size and also change the buff size in a3_fgets_2 function call to more than 15, the program will run in an infinite loop, Can anybody tell me why? Thanks [CODE]#include<unistd.h> #include<string.h> char * a3_fgets ( char * str, int num, int fd ); …

Member Avatar for efronefron
0
267
Member Avatar for efronefron

I was doing a projecteuler problem. I made a program that would find all the prime numbers under 1000000 and write them all in a file. Why is that if I use the file name as "primes.txt", the result is gibberish from beginning to end, but when I use "primes.dat", …

Member Avatar for NormR1
0
820
Member Avatar for efronefron

I dont have any idea what the problem is. But what I know is it stopped at fgets(temp, 256, stdin); when I run the program, it runs this line and then just stopped because of a segmentation fault. The silly printfs are just for me checking where it stopped exactly. …

Member Avatar for efronefron
0
129
Member Avatar for efronefron

There is a problem I am having inside the AddToEnd function. At this line: [QUOTE]*ptrL->ptrNext = ptrInput;[/QUOTE] it gives this error: [QUOTE]lab8.c: In function ‘AddToEnd’: lab8.c:105: error: request for member ‘ptrNext’ in something not a structure or union [/QUOTE] Can anybody tell me why? P.S. I realized that I do …

Member Avatar for efronefron
0
189
Member Avatar for efronefron

I have already included string.h, I've even tried defining GNU but I still get the same warning/error when I compile it. below is not really code, its the warning/error I get [CODE]bravo:~/60-141/Assignment/Assignment3>cc assign3.c "assign3.c", line 94: warning: implicit function declaration: strndup Undefined first referenced symbol in file strndup assign3.o ld: …

Member Avatar for efronefron
0
845
Member Avatar for efronefron

Hi this is an assignment for my computer science lab. It is weird because if I compile and run with my c compiler from ubuntu gcc4.4, it works perfectly. But if I compile with the university's server (I connect with SSH) it messes up The main purpose of the program …

Member Avatar for efronefron
0
287
Member Avatar for efronefron

The problem is I use malloc in the last function(toString()). I just wanna know if there is anyway to free it? or that I dont have to? Thanks [CODE] #include<stdio.h> #include<string.h> #include<stdlib.h> #include<ctype.h> /* Function prototypes */ void process(char input); void update(char words[][51], int position); char * toString(char character); /* …

Member Avatar for WaltP
0
212
Member Avatar for efronefron

I have been racking my brains to find what's wrong with my code... been playing with it for an hour or so but it seems to still be wrong.. Please anyone can point out the mistake? Im so frustated right now.:yawn: the answer to the question is 21124, but this …

Member Avatar for efronefron
0
602

The End.