Okay. I will try passing 0.
Here is one questions. I am using the WSAAsyncSelect I/O Mode. For example, let say I send two packages. The first package holds the size of the data buffer. The second package is the actual data buffer. Okay. That sounds easy enough. In WSAAsyncSelect I/O Mode, do I need to set a flag to basically determine whether an incoming package is the *header* or the *data buffer*?
This is hard to explain and I hope maybe someone will understand what I am implying. Here is a different sample.
-----
-> send header
-> send data
-----
-----
WSAAsyncSelect-> incoming message
-> receive header
WSAAsyncSelect-> incoming message
-> receive data
-----
In other words as soon as WSAAsyncSelect send notice of an incoming message, should I implement *two* calls to WSARecv *consecutively* or do I need a bool switch (header/data) type of implementation if WSAAsyncSelect sends a message for *each* incoming message.
Thanks,
Kuphryn
WSARecv Error :: Winsock
When using TCP/IP the data will be received in the order it was sent. If you send the header and then the data, when you call WSARecv you know that the header will come before the data.
Dire Wolf
www.digitalfiends.com
Dire Wolf
www.digitalfiends.com
[email=direwolf@digitalfiends.com]Dire Wolf[/email]
www.digitalfiends.com
www.digitalfiends.com
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement