recv( SOCKET s, void *pbuf, int size, int flags );该函数是从一块缓存区把数据拷贝到pbuf区域。我想问一下该缓存区的地址是怎么确定呢?
还有就是用sendto()发送数据过来,sendto()发送一次,我就必须用recv()函数接收一次吗?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
recv( SOCKET s, void *pbuf, int size, int flags );该函数是从一块缓存区把数据拷贝到pbuf区域。我想问一下该缓存区的地址是怎么确定呢?
还有就是用sendto()发送数据过来,sendto()发送一次,我就必须用recv()函数接收一次吗?