I have an asynchronous Server Socket to push data to client (Socket.BeginSend) when data is available, Meanwhile, the client socket use Synchronous Client Socket to receive the data. I have two questions on this
1. When client socket does not receive data as fast as server, does server socket queues all the data, or just waits? If it queues, this may kill server
2. I declare socket receive buffer big enough, when I call Socket.Receive method, Does the client always receive one pushed data, or it may receive part of one pushed data, or it may receive one pushed data plus part of next pushed data? I tested it, it looks like one pushed data, but I am not sure enough
Thank
Server
Do While Tru
..
myData = GetData() '
m_Socket.BeginSend(myData, ...
..
Loo
Client
Do While Tru
..
bytesReceived = m_Socket.Receive(byteBuffer
..
Loo