Change the project so that it compiles against .Net 4.0 for greater usability.
This commit is contained in:
@@ -47,7 +47,7 @@ namespace TestProtocol
|
||||
throw new InvalidOperationException( "Already running" );
|
||||
}
|
||||
|
||||
this.serverSocket = new Socket( SocketType.Stream, ProtocolType.Tcp );
|
||||
this.serverSocket = new Socket( AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp );
|
||||
this.serverSocket.Bind( new IPEndPoint( IPAddress.Any, port ) );
|
||||
this.serverSocket.Listen( 1 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user