Please sign in to comment.
acceptConnection now has a functionPointer
upon connection accept, will not use the functionPointer to spawn a thread to handle the request (John has to write this part)
- Loading branch information...
Showing with 29 additions and 3 deletions.
|@@ -0,0 +1,22 @@|
|+int openSocket(int port);|
|+int connectToServer(int sock, int port, char * name);|
|+/**Continuously reads from the tap and prints the string it gets from tap|
|+ * Takes no parameters|
|+ * Will take up to 500 bytes from tap otherwise segmentation fault,|
|+ * but the 500 bytes is adjustable|
|+ * Exits entire program if for some reason program can't open tap*/|
|+char * read();|
|+/**Writes messages into the tap|
|+ * There are no parameters|
|+ Exits entire program if for some reason program can't open tap*/|
|+char * write(char *msg);|