Hi everyone,
I hope you can help me out.
I'm trying to send packets of 1000 bits across a network via TCP/IP and I was hoping to be able to use the Overlapped I/O technique in both Cygwin and Windows as well.
In Cygwin, I am trying to use the "readv() and writev()" function calls to send 1000 bits across while in Windows, I am trying to use the WSASend() and WSARecv() APIs in the winsock2.h header file.
It seems that I can ONLY send 1000 bits from Cygwin(client.cpp) to Windows(server.cpp). More than 1000 bits, and I encounter unexpected results. It seems as though the bits get wrapped around or overwritten.
I've search all over the internet but it seems that no one has ever tried using this approach to things as I did and thus I am seeking your help in this, please.
Thank you and best regards, Cornelius