Programming and posix - February 2001

February 10, 2001
Solution Symposium
Page 52
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