7 writes to NetworkStream
System (7)
net\System\Net\_Connection.cs (3)
1167
NetworkStream
= tlsStream;
3751
conn.
NetworkStream
= new NetworkStream(connectStream.Connection.NetworkStream, true);
3829
NetworkStream
= new NetworkStream(connectStream.Connection.NetworkStream, true);
net\System\Net\_FtpControlStream.cs (1)
412
NetworkStream
= tlsStream;
net\System\Net\mail\smtpconnection.cs (3)
408
pooledStream.
NetworkStream
= TlsStream;
931
connection.pooledStream.
NetworkStream
= TlsStream;
955
thisPtr.connection.pooledStream.
NetworkStream
= TlsStream;
45 references to NetworkStream
System (45)
net\System\Net\_Connection.cs (14)
1160
NetworkStream
,
1178
NetworkStream
.Close();
2249
else if (m_ResponseData.m_StatusCode == HttpStatusCode.Forbidden &&
NetworkStream
is TlsStream)
3155
if (!(e is WebException) &&
NetworkStream
is TlsStream)
3158
webExceptionStatus = ((TlsStream)
NetworkStream
).ExceptionStatus;
3254
if (
NetworkStream
is TlsStream) {
3255
errorStatus = ((TlsStream)
NetworkStream
).ExceptionStatus;
3365
else if (
NetworkStream
is TlsStream) {
3366
errorStatus = ((TlsStream)
NetworkStream
).ExceptionStatus;
3644
GlobalLog.Enter("Connection#" + ValidationHelper.HashString(this) + "::Write(ScatterGatherBuffers) networkstream#" + ValidationHelper.HashString(
NetworkStream
));
3751
conn.NetworkStream = new NetworkStream(connectStream.Connection.
NetworkStream
, true);
3753
connectStream.Connection.
NetworkStream
.ConvertToNotSocketOwner();
3829
NetworkStream = new NetworkStream(connectStream.Connection.
NetworkStream
, true);
3831
connectStream.Connection.
NetworkStream
.ConvertToNotSocketOwner();
net\System\Net\_ConnectionGroup.cs (1)
486
if (!currentConnection.IsInitalizing && !currentConnection.
NetworkStream
.Connected) {
net\System\Net\_ConnectStream.cs (5)
2307
TlsStream tlsStream = m_Connection.
NetworkStream
as TlsStream;
2337
NetworkStream networkStream = connection.
NetworkStream
;
2367
NetworkStream networkStream = connection.
NetworkStream
;
2583
NetworkStream networkStream = connection.
NetworkStream
;
2911
NetworkStream networkStream = m_Connection.
NetworkStream
;
net\System\Net\_FtpControlStream.cs (1)
405
NetworkStream
,
net\System\Net\mail\smtpconnection.cs (14)
343
responseReader = new SmtpReplyReaderFactory(pooledStream.
NetworkStream
);
392
if (!(pooledStream.
NetworkStream
is TlsStream))
400
pooledStream.
NetworkStream
,
413
responseReader = new SmtpReplyReaderFactory(pooledStream.
NetworkStream
);
560
ClosableStream cs = new ClosableStream(pooledStream.
NetworkStream
, onCloseHandler);
703
connection.responseReader = new SmtpReplyReaderFactory(connection.pooledStream.
NetworkStream
);
792
if (connection.pooledStream.
NetworkStream
is TlsStream)
803
if (!(connection.pooledStream.
NetworkStream
is TlsStream))
837
if (thisPtr.connection.pooledStream.
NetworkStream
is TlsStream)
862
if (!(thisPtr.connection.pooledStream.
NetworkStream
is TlsStream))
924
connection.pooledStream.
NetworkStream
,
932
connection.responseReader = new SmtpReplyReaderFactory(connection.pooledStream.
NetworkStream
);
949
thisPtr.connection.pooledStream.
NetworkStream
,
956
thisPtr.connection.responseReader = new SmtpReplyReaderFactory(thisPtr.connection.pooledStream.
NetworkStream
);
net\System\Net\mail\SmtpTransport.cs (1)
43
if (this.
NetworkStream
.Connected) {
net\System\Net\WebSockets\WebSocketConnectionStream.cs (9)
39
Contract.Assert(connectStream.Connection.
NetworkStream
!= null,
48
m_IsFastPathAllowed = m_ConnectStream.Connection.
NetworkStream
.GetType() == s_NetworkStreamType;
388
thisPtr.m_ConnectStream.Connection.
NetworkStream
.InternalAbortSocket();
488
Contract.Assert(connection.
NetworkStream
!= null, "'connection.NetworkStream' MUST NOT be NULL.");
493
m_SupportsMultipleWrites = connection.
NetworkStream
.GetType().Assembly == s_NetworkStreamType.Assembly;
585
Contract.Assert(m_InnerStream.
NetworkStream
!= null, "'m_InnerStream.NetworkStream' MUST NOT be NULL.");
586
returnValue = m_InnerStream.
NetworkStream
.InternalSocket;
613
return connection.m_InnerStream.
NetworkStream
.BeginMultipleWrite(buffers, callback, asyncState);
624
connection.m_InnerStream.
NetworkStream
.EndMultipleWrite(asyncResult);