Create a connectionless pair of sockets that can communicate with each other without specifying any addresses in their I/O operations
Open
SOCK_DGRAM
socketsrvr_s
onsrvr
and bind it tosrvr_addr
address;Open
SOCK_DGRAM
socketclnt_s
onclnt
and bind it to toclnt_addr
address;connect()
clnt_s
socket tosrvr_s
socket;connect()
srvr_s
socket toclnt_s
socket.
Parameters:
srvr |
PCO for server part of connection |
clnt |
PCO for client part of connection |
domain |
Domain used in the connection |
proto |
Protocol used in the connection |
srvr_addr |
server address (cannot be |
clnt_addr |
address to bind client to (cannot be |
srvr_s |
|
clnt_s |
|