public OutboundConnectionContext(LinuxSocket socket, EndPoint remote, TransportThreadContext threadContext) : base(socket, null, remote, threadContext) { // Add IConnectionInherentKeepAliveFeature to the tcp connection impl since Kestrel doesn't implement // the IConnectionHeartbeatFeature Features.Set <IConnectionInherentKeepAliveFeature>(this); }
public OutboundConnectionContext(LinuxSocket socket, EndPoint remote, TransportThreadContext threadContext) : base(socket, null, remote, threadContext) { sockaddr_storage addr = default; var addrHandle = GCHandle.Alloc(addr, GCHandleType.Pinned); _addr = (sockaddr_storage *)addrHandle.AddrOfPinnedObject(); _addrHandle = addrHandle; // Add IConnectionInherentKeepAliveFeature to the tcp connection impl since Kestrel doesn't implement // the IConnectionHeartbeatFeature Features.Set <IConnectionInherentKeepAliveFeature>(this); }
public InboundConnectionContext(LinuxSocket socket, EndPoint local, EndPoint remote, TransportThreadContext threadContext) : base(socket, local, remote, threadContext) { }