1 int main(int argc, char *argv[])
9 /* call sockaddr to get a connected socket */
10 if ( (sock = sockconn(argv[optind], "echo", 6, SOCK_STREAM)) < 0) {
11 if (errno) perror("Socket creation error");
15 /* do read/write operations */
16 ClientEcho(stdin, sock);