G
Guest
Hi,
I use socket in my program and I have a problem on BeginRecieve.
The code is like this:
connection.Socket.BeginReceive(Buffer, 0, Buffer.Length, SocketFlags.None,
new AsyncCallback(RecieveData), connection);
I test the code with telnet on win32, netcat on freebsd, both works fine.
But when I connect with netcat for win32 downloaded from
http://www.vulnwatch.org/netcat/ there's a problem.
If I connect to the server, then, after the BeginReceive is called, press
Ctrl-C to end connection from client side, the server will crash.
Is this the bug of Socket class?
I use socket in my program and I have a problem on BeginRecieve.
The code is like this:
connection.Socket.BeginReceive(Buffer, 0, Buffer.Length, SocketFlags.None,
new AsyncCallback(RecieveData), connection);
I test the code with telnet on win32, netcat on freebsd, both works fine.
But when I connect with netcat for win32 downloaded from
http://www.vulnwatch.org/netcat/ there's a problem.
If I connect to the server, then, after the BeginReceive is called, press
Ctrl-C to end connection from client side, the server will crash.
Is this the bug of Socket class?