Programming and posix - April 2002

April 3, 2002
Solution Symposium
Page 55
hp e3000
programming
and posix
sockets - client example
mysock = socket(AF_INET,SOCK_STREAM,0);
connect(mysock,<remote address>);
write() or send() the request to the server
read() or recv() the response from the server
close(mysock);