I have a second question:
there is a function recv(...) in the WinSock2.h file, this function is called for example in the AsyncSocketExLayer.cpp file. But I can´t find anywhere any implementation of the recv(...) function, I´ve just found out it´s a Microsoft SDK implementation.. I need to know, how this function works in order to answer the last two questions posted in this thread..
the header of recv(..) function in the WinSock2.h file (I couldn´t find any .cpp file with implementation):
Code: Select all
#if INCL_WINSOCK_API_PROTOTYPES
WINSOCK_API_LINKAGE
int
WSAAPI
recv(
IN SOCKET s,
__out_bcount_part(len, return) __out_data_source(NETWORK) char FAR * buf,
IN int len,
IN int flags
);
#endif /* INCL_WINSOCK_API_PROTOTYPES */
Please, can you help me with this. Thank you a lot.