英语翻译Call this member function to accept a connection on a socket.This routine extracts the first connection in the queue of pending connections,creates a new socket with the same properties as this socket,and attaches it to rConnectedSocket.I
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/22 23:21:01
英语翻译Call this member function to accept a connection on a socket.This routine extracts the first connection in the queue of pending connections,creates a new socket with the same properties as this socket,and attaches it to rConnectedSocket.I
英语翻译
Call this member function to accept a connection on a socket.This routine extracts the first connection in the queue of pending connections,creates a new socket with the same properties as this socket,and attaches it to rConnectedSocket.If no pending connections are present on the queue,Accept returns zero and GetLastError returns an error.The accepted socket (rConnectedSocket) cannot be used to accept more connections.The original socket remains open and listening.
英语翻译Call this member function to accept a connection on a socket.This routine extracts the first connection in the queue of pending connections,creates a new socket with the same properties as this socket,and attaches it to rConnectedSocket.I
调用这个成员函数来接受套接字上的连接.这个程序取出挂起的连接队列里面的第一个连接,创建一个和当前套接字属性相同的新套接字,然后将其加到rConnectedSocket里.如果队列里没有任何挂起的连接,Accept会返回0并且GetLastError 会返回错误.已被接受的套接字(rConnectedSocket)不能用来接受其它的连接.最初的那个套接字依然保持开放和倾听状态.