sock - // talk.c program to the internet interface. /...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <unistd.h> # int msgpipe[2]; /* for Interprocess Comm */ void sock_init(char *, int); /* Connect to Internet */ void pipe_init(); /* Connect to threads */ void close_pipe(); v // These macros simply sending a message from the
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: // talk.c program to the internet interface. / #define send_message(x) write(msgpipe[0], x, 1+strlen(x)) #define recv_message(x) read(msgpipe[0], x, 400)...
View Full Document

Ask a homework question - tutors are online