Change the project so that it compiles against .Net 4.0 for greater usability.

This commit is contained in:
antiduh
2014-07-07 19:24:31 +00:00
parent 525007e296
commit 6805058de5
19 changed files with 156 additions and 195 deletions

View File

@@ -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 );