Hi everyone!
I wish my program to send data with no delay, that means if I sent data twice (with the Socket.Send() method) the client will get this data in two "recieve" events.
I know I could attach this socket to a stream but I prefer to stay simple.
My current code looks like:
sock.Send( Encoding.Unicode.GetBytes("hello"));
sock.IOControl( IOControlCode.Flush, null, null);
But the IOControl execution throws an exception at me:
"An invalid argument was supplied"
Checked a bit in the older MSDN docs and there it says that this param ('Flush') takes null as args.
Anyone knows what's wrong
.NET Development34
|