Programming and posix - April 2002

April 3, 2002
Solution Symposium
Page 53
hp e3000
programming
and posix
sockets
InterProcess communciation via socket address:
Internet (32-bit IPv4 address, port number)
Unix (local file name)
Functions
socket() - create socket descriptor
connect() - connect to a remote socket
bind() - to use specific listening socket (i.e. port 80)
listen() - establish queue for incoming TCP conns
accept() - wait for a new TCP connection
read()/recv(), write()/send() - data transmission
close() - close a socket