Thank you for your reply :)
So according toyour reply,the answer is
SocketAsyncEventArgs.Buffer property,samethingthat I receive a text message from client, I think.
I'm going totry it :)
I had this question because the page of
SocketAsyncEventArgs.Buffer on MSDN:
http://msdn.microsoft.com/en-us/library/system.net.sockets.socketasynceventargs.buffer.aspxAs you can see, the Remark section in this page:
"This property is used with the
Socket.AcceptAsync,
Socket.ConnectAsync,
Socket.ReceiveAsync,
Socket.ReceiveFromAsync,
Socket.ReceiveMessageFromAsync,
Socket.SendAsync, and
Socket.SendToAsync methods."
There's no
Socket.SendPacketsAsync() method in this section :)
By the way, how do I ascertain the data in
SocketAsyncEventArgs.Buffer is a file(for example: bitmap) or text message?
Thanks again :)