socket: winsock package | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
accept connection y - socket bind socket y - socket , family , address , port family must be AF_INET address of '' is '0.0.0.0' (INADDR_ANY) check socket for errors socket utilities close socket y - socket connect to the socket y - socket , family , address , port returns a name from an address y - AF_INET;host ip address returns an address from a name y - host name returns address this socket is connected to y active socket returns address of this socket y active socket set up listener for the socket y - socket;queue_length SOMAXCONN - The maximum length of the queue of pending connections read data y- socket,data_size, indicator specifying the way in which the call is made (0) read data from y- socket, data_size, indicator specifying the way in which the call is made (0) find sockets that need work if no arguments given, look at all sockets convert millisecond timeout to seconds/microseconds send data y- socket; indicator specifying the way in which the call is made (0) x- data send data y- socket ; flags ; family ; address ; port x- data returns address y active socket
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
>> << Ndx Usr Pri JfC LJ Phr Dic Rel Voc !: wd Help User |