1 write to socket
System.ServiceModel (1)
System\ServiceModel\Channels\SocketConnection.cs (1)
88this.socket = socket;
42 references to socket
System.ServiceModel (42)
System\ServiceModel\Channels\SocketConnection.cs (42)
92this.socket.SendBufferSize = this.socket.ReceiveBufferSize = this.asyncReadBufferSize; 100this.socket.UseOnlyOverlappedIO = false; 107if (this.socket.UseOnlyOverlappedIO) 151remoteEndpoint = (IPEndPoint)socket.RemoteEndPoint; 304TD.SocketConnectionAbort(this.socket.GetHashCode()); 343socket.Close(0); 407new CommunicationException(SR.GetString(SR.SocketCloseReadReceivedData, socket.RemoteEndPoint)), 414SR.GetString(SR.SocketCloseReadTimeout, socket.RemoteEndPoint, readFinTimeout), timeoutException), 436new CommunicationException(SR.GetString(SR.SocketCloseReadReceivedData, thisPtr.socket.RemoteEndPoint)), 443SR.GetString(SR.SocketCloseReadTimeout, thisPtr.socket.RemoteEndPoint, thisPtr.readFinTimeout), 473this.TraceSocketInfo(this.socket, TraceCode.SocketConnectionClose, SR.TraceCodeSocketConnectionClose, timeout.ToString()); 506new CommunicationException(SR.GetString(SR.SocketCloseReadReceivedData, socket.RemoteEndPoint)), ExceptionEventType); 512SR.GetString(SR.SocketCloseReadTimeout, socket.RemoteEndPoint, readFinTimeout), timeoutException), ExceptionEventType); 528socket.Close(TimeoutHelper.ToMilliseconds(timeout)); 565socket.Shutdown(SocketShutdown.Send); 642remoteIPEndpoint = this.remoteEndpoint ?? (IPEndPoint)this.socket.RemoteEndPoint; 643localIPEndpoint = (IPEndPoint)this.socket.LocalEndPoint; 661object result = socket.DuplicateAndClose(targetProcessId); 668return socket; 740int socketid = (socketConnection != null && socketConnection.socket != null) ? socketConnection.socket.GetHashCode() : -1; 766int socketId = (socketConnection.socket != null) ? socketConnection.socket.GetHashCode() : -1; 877if (socket.SendAsync(this.asyncWriteEventArgs)) 1040socket.Send(buffer, offset, size, SocketFlags.None); 1069TD.SocketWriteStart(this.socket.GetHashCode(), size, this.RemoteEndpointAddress); 1073TD.SocketAsyncWriteStart(this.socket.GetHashCode(), size, this.RemoteEndpointAddress); 1103bytesRead = socket.Receive(buffer, offset, size, SocketFlags.None); 1135TD.SocketReadStop((this.socket != null) ? this.socket.GetHashCode() : -1, bytesRead, this.RemoteEndpointAddress); 1139TD.SocketAsyncReadStop((this.socket != null) ? this.socket.GetHashCode() : -1, bytesRead, this.RemoteEndpointAddress); 1169if (socket.UseOnlyOverlappedIO) 1172IAsyncResult result = socket.BeginReceive(AsyncReadBuffer, offset, size, SocketFlags.None, onReceiveCompleted, this); 1180asyncReadSize = socket.EndReceive(result); 1246return this.socket.ReceiveAsync(this.asyncReadEventArgs); 1256return this.socket.ReceiveAsync(this.asyncReadEventArgs); 1270this.asyncReadSize = socket.EndReceive(result); 1421socket.NoDelay = immediate; 1448this.socket.ReceiveTimeout = TimeoutHelper.ToMilliseconds(timeout); 1485this.socket.SendTimeout = TimeoutHelper.ToMilliseconds(timeout);