What is the Use of SocketFlags.Partial

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Client is sending data a,b,c using seperate send method to the server
eg.,
Socket.Send('a')
Socket.Send('b')
Socket.Send('c')

In the Server we are using Receive method to receive the incoming data
eg.,
while(true)
{
Socket.Receive(buffer,,SocketFlags.None)
-------
----
}
Receive method receives the data as a whole that is abc. But we want to
receive a,b,c in a successive receive and not in a single receive.

This is achiveved by changing SocketFlags.None to SocketFlags.Partial in the
receive method.
But we don't know what is happening while using above metioned flag.

Can any one send me the detailed description of SocketFlags.Partial parameter.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top