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