Create a connectionless pair of sockets that can communicate with each other without specifying any addresses in their I/O operations
Open
SOCK_DGRAMsocketsrvr_sonsrvrand bind it tosrvr_addraddress;Open
SOCK_DGRAMsocketclnt_sonclntand bind it to toclnt_addraddress;connect()
clnt_ssocket tosrvr_ssocket;connect()
srvr_ssocket toclnt_ssocket.
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 |
|