コード例 #1
0
 private void SetSocketOptions(ClientAssociationParameters parameters)
 {
     _socket.ReceiveBufferSize = parameters.ReceiveBufferSize;
     _socket.SendBufferSize    = parameters.SendBufferSize;
     _socket.ReceiveTimeout    = parameters.ReadTimeout;
     _socket.SendTimeout       = parameters.WriteTimeout;
     _socket.LingerState       = new LingerOption(false, 0);
     // Nagle option
     _socket.NoDelay = parameters.DisableNagle;
 }
コード例 #2
0
 internal ClientAssociationParameters Copy(ClientAssociationParameters sourceParameters)
 {
     return(new ClientAssociationParameters(sourceParameters));
 }
コード例 #3
0
 private ClientAssociationParameters(ClientAssociationParameters parameters)
     : base(parameters)
 {
 }