Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ HttpConnection()

System.Net.Http.HttpConnection.HttpConnection ( HttpConnectionPool pool,
Socket socket,
Stream stream,
TransportContext transportContext )
inline

Definition at line 1125 of file HttpConnection.cs.

1126 {
1127 _pool = pool;
1128 _stream = stream;
1129 _socket = socket;
1131 _writeBuffer = new byte[4096];
1132 _readBuffer = new byte[4096];
1134 _idleSinceTickCount = Environment.TickCount64;
1135 if (HttpTelemetry.Log.IsEnabled())
1136 {
1137 HttpTelemetry.Log.Http11ConnectionEstablished();
1138 _disposed = 2;
1139 }
1140 if (System.Net.NetEventSource.Log.IsEnabled())
1141 {
1143 }
1144 }
readonly WeakReference< HttpConnection > _weakThisRef
readonly TransportContext _transportContext
readonly HttpConnectionPool _pool
static readonly System.Net.NetEventSource Log

References System.Net.Http.HttpConnection._disposed, System.Net.Http.HttpConnection._idleSinceTickCount, System.Net.Http.HttpConnection._pool, System.Net.Http.HttpConnection._readBuffer, System.Net.Http.HttpConnection._socket, System.Net.Http.HttpConnection._stream, System.Net.Http.HttpConnection._transportContext, System.Net.Http.HttpConnection._weakThisRef, System.Net.Http.HttpConnection._writeBuffer, System.Net.Http.HttpTelemetry.Log, System.Net.NetEventSource.Log, System.stream, System.Environment.TickCount64, and System.Net.Http.HttpConnectionBase.TraceConnection().

Referenced by System.Net.Http.HttpConnection.ChunkedEncodingReadStream.DrainAsync(), and System.Net.Http.HttpConnection.ContentLengthReadStream.DrainAsync().