socket 1

svr:
socket(AF_INET,SOCK_STREAM)
bind
listen
clientsocket=accept

client:
socket(AF_INET,SOCK_STREAM)
connect

你可能感兴趣的:(socket)