If this flag is specified, the function returns the number of bytes of data currently pending to be received.ĭownload the main page of this web site ( ). MSG_PEEK Peek at the incoming data by copying data into the buffer without removing it from the input queue. Length The size in bytes of the buffer passed as buf.įlags A combination of the following flags specifying additional options: This buffer must be large enough to receive the amount of data requested. S A descriptor of the connected socket to receive data from.īuf A buffer that receives the information obtained from the connection. If specifying a string for buf, the ByVal keyword must be placed in front of it. If an error occured (for example, if the connection timed out), the function returns SOCKET_ERROR (use WSAGetLastError to get the error code). If successful, the function returns the number of bytes successfully read from the socket. If no response is heard from the network host, the function times out and reports an error. The socket must have already been connected to a network host via connect. Recv receives data from a connected socket. Windows CE: Requires Windows CE 1.0 or later.Windows NT: Requires Windows NT 3.1 or later.Declare Function recv Lib "wsock32.dll" ( ByVal s As Long, buf As Any, ByVal length As Long, ByVal flags As Long) As Long Platforms
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |