I think it's not a dongdong :) Just an object, you can use the socket finish the communication between the two or more computers.It's have encapsulated the actions of communication process. socket() listen() accetp() recv(0 send() recvform() sendto() …… many socket functions used to compose the comunication process,and there the basic of computer communication
socket就像两个房间间的一扇门,打开这扇门就可以于两房间穿梭!
一个ip地址和一个端口来确定通信的双方,socket
typedef unsigned int SOCKETSOCKET是个句柄,标识一个可以收发网络数据的东东,再往下我就不清楚了 ~~~
Just an object, you can use the socket finish the communication between the two or more computers.It's have encapsulated the actions of communication process.
socket()
listen()
accetp()
recv(0
send()
recvform()
sendto()
……
many socket functions used to compose the comunication process,and there the basic of computer communication
还有其他用来通信的么,除了socket?
IPC的通信方式有很多,文件、数据库、网络、事件、消息.......。
socket跟管道、油槽是一路货。
书上这么解释的