Esempio n. 1
0
 public GotConnInfo(net.Conn Conn = default, bool Reused = default, bool WasIdle = default, time.Duration IdleTime = default)
 {
     this.Conn     = Conn;
     this.Reused   = Reused;
     this.WasIdle  = WasIdle;
     this.IdleTime = IdleTime;
 }
Esempio n. 2
0
 public Client(ref ptr <textproto.Conn> Text = default, net.Conn conn = default, bool tls = default, @string serverName = default, map <@string, @string> ext = default, slice <@string> auth = default, @string localName = default, bool didHello = default, error helloError = default)
 {
     this.Text       = Text;
     this.conn       = conn;
     this.tls        = tls;
     this.serverName = serverName;
     this.ext        = ext;
     this.auth       = auth;
     this.localName  = localName;
     this.didHello   = didHello;
     this.helloError = helloError;
 }
Esempio n. 3
0
 public ServerConn(sync.Mutex mu = default, net.Conn c = default, ref ptr <bufio.Reader> r = default, error re = default, error we = default, io.ReadCloser lastbody = default, long nread = default, long nwritten = default, map <ptr <http.Request>, ulong> pipereq = default, textproto.Pipeline pipe = default)
 {
     this.mu       = mu;
     this.c        = c;
     this.r        = r;
     this.re       = re;
     this.we       = we;
     this.lastbody = lastbody;
     this.nread    = nread;
     this.nwritten = nwritten;
     this.pipereq  = pipereq;
     this.pipe     = pipe;
 }
 public http2ClientConn(ref ptr<http2Transport> t = default, net.Conn tconn = default, ref ptr<tls.ConnectionState> tlsState = default, uint reused = default, bool singleUse = default, channel<object> readerDone = default, error readerErr = default, time.Duration idleTimeout = default, ref ptr<time.Timer> idleTimer = default, sync.Mutex mu = default, ref ptr<sync.Cond> cond = default, http2flow flow = default, http2flow inflow = default, bool closing = default, bool closed = default, bool wantSettingsAck = default, ref ptr<http2GoAwayFrame> goAway = default, @string goAwayDebug = default, map<uint, ptr<http2clientStream>> streams = default, uint nextStreamID = default, long pendingRequests = default, map<array<byte>, channel<object>> pings = default, ref ptr<bufio.Writer> bw = default, ref ptr<bufio.Reader> br = default, ref ptr<http2Framer> fr = default, time.Time lastActive = default, time.Time lastIdle = default, uint maxFrameSize = default, uint maxConcurrentStreams = default, ulong peerMaxHeaderListSize = default, uint initialWindowSize = default, bytes.Buffer hbuf = default, ref ptr<hpack.Encoder> henc = default, slice<slice<byte>> freeBuf = default, sync.Mutex wmu = default, error werr = default)
 {
     this.t = t;
     this.tconn = tconn;
     this.tlsState = tlsState;
     this.reused = reused;
     this.singleUse = singleUse;
     this.readerDone = readerDone;
     this.readerErr = readerErr;
     this.idleTimeout = idleTimeout;
     this.idleTimer = idleTimer;
     this.mu = mu;
     this.cond = cond;
     this.flow = flow;
     this.inflow = inflow;
     this.closing = closing;
     this.closed = closed;
     this.wantSettingsAck = wantSettingsAck;
     this.goAway = goAway;
     this.goAwayDebug = goAwayDebug;
     this.streams = streams;
     this.nextStreamID = nextStreamID;
     this.pendingRequests = pendingRequests;
     this.pings = pings;
     this.bw = bw;
     this.br = br;
     this.fr = fr;
     this.lastActive = lastActive;
     this.lastIdle = lastIdle;
     this.maxFrameSize = maxFrameSize;
     this.maxConcurrentStreams = maxConcurrentStreams;
     this.peerMaxHeaderListSize = peerMaxHeaderListSize;
     this.initialWindowSize = initialWindowSize;
     this.hbuf = hbuf;
     this.henc = henc;
     this.freeBuf = freeBuf;
     this.wmu = wmu;
     this.werr = werr;
 }
Esempio n. 5
0
 public loggingConn(@string name = default, net.Conn Conn = default)
 {
     this.name = name;
     this.Conn = Conn;
 }
 public socksConn(net.Conn Conn = default, net.Addr boundAddr = default)
 {
     this.Conn      = Conn;
     this.boundAddr = boundAddr;
 }
Esempio n. 7
0
 public Conn(net.Conn conn = default, bool isClient = default, Func <error> handshakeFn = default, uint handshakeStatus = default, sync.Mutex handshakeMutex = default, error handshakeErr = default, ushort vers = default, bool haveVers = default, ref ptr <Config> config = default, long handshakes = default, bool didResume = default, ushort cipherSuite = default, slice <byte> ocspResponse = default, slice <slice <byte> > scts = default, slice <ptr <x509.Certificate> > peerCertificates = default, slice <slice <ptr <x509.Certificate> > > verifiedChains = default, @string serverName = default, bool secureRenegotiation = default, Func <@string, slice <byte>, long, (slice <byte>, error)> ekm = default, slice <byte> resumptionSecret = default, slice <ticketKey> ticketKeys = default, bool clientFinishedIsFirst = default, error closeNotifyErr = default, bool closeNotifySent = default, array <byte> clientFinished = default, array <byte> serverFinished = default, @string clientProtocol = default, bool clientProtocolFallback = default, halfConn @in = default, halfConn @out = default, bytes.Buffer rawInput = default, bytes.Reader input = default, bytes.Buffer hand = default, slice <byte> outBuf = default, bool buffering = default, slice <byte> sendBuf = default, long bytesSent = default, long packetsSent = default, long retryCount = default, int activeCall = default, array <byte> tmp = default)
Esempio n. 8
0
 public ClientHelloInfo(slice <ushort> CipherSuites = default, @string ServerName = default, slice <CurveID> SupportedCurves = default, slice <byte> SupportedPoints = default, slice <SignatureScheme> SignatureSchemes = default, slice <@string> SupportedProtos = default, slice <ushort> SupportedVersions = default, net.Conn Conn = default, ref ptr <Config> config = default)
 {
     this.CipherSuites      = CipherSuites;
     this.ServerName        = ServerName;
     this.SupportedCurves   = SupportedCurves;
     this.SupportedPoints   = SupportedPoints;
     this.SignatureSchemes  = SignatureSchemes;
     this.SupportedProtos   = SupportedProtos;
     this.SupportedVersions = SupportedVersions;
     this.Conn   = Conn;
     this.config = config;
 }
Esempio n. 9
0
 public http2serverConn(ref ptr <http2Server> srv = default, ref ptr <Server> hs = default, net.Conn conn = default, ref ptr <http2bufferedWriter> bw = default, Handler handler = default, context.Context baseCtx = default, ref ptr <http2Framer> framer = default, channel <object> doneServing = default, channel <http2readFrameResult> readFrameCh = default, channel <http2FrameWriteRequest> wantWriteFrameCh = default, channel <http2frameWriteResult> wroteFrameCh = default, channel <http2bodyReadMsg> bodyReadCh = default, channel <object> serveMsgCh = default, http2flow flow = default, http2flow inflow = default, ref ptr <tls.ConnectionState> tlsState = default, @string remoteAddrStr = default, http2WriteScheduler writeSched = default, http2goroutineLock serveG = default, bool pushEnabled = default, bool sawFirstSettings = default, bool needToSendSettingsAck = default, long unackedSettings = default, long queuedControlFrames = default, uint clientMaxStreams = default, uint advMaxStreams = default, uint curClientStreams = default, uint curPushedStreams = default, uint maxClientStreamID = default, uint maxPushPromiseID = default, map <uint, ptr <http2stream> > streams = default, int initialStreamSendWindowSize = default, int maxFrameSize = default, uint headerTableSize = default, uint peerMaxHeaderListSize = default, map <@string, @string> canonHeader = default, bool writingFrame = default, bool writingFrameAsync = default, bool needsFrameFlush = default, bool inGoAway = default, bool inFrameScheduleLoop = default, bool needToSendGoAway = default, http2ErrCode goAwayCode = default, ref ptr <time.Timer> shutdownTimer = default, ref ptr <time.Timer> idleTimer = default, bytes.Buffer headerWriteBuf = default, ref ptr <hpack.Encoder> hpackEncoder = default, sync.Once shutdownOnce = default)
 {
     this.srv                         = srv;
     this.hs                          = hs;
     this.conn                        = conn;
     this.bw                          = bw;
     this.handler                     = handler;
     this.baseCtx                     = baseCtx;
     this.framer                      = framer;
     this.doneServing                 = doneServing;
     this.readFrameCh                 = readFrameCh;
     this.wantWriteFrameCh            = wantWriteFrameCh;
     this.wroteFrameCh                = wroteFrameCh;
     this.bodyReadCh                  = bodyReadCh;
     this.serveMsgCh                  = serveMsgCh;
     this.flow                        = flow;
     this.inflow                      = inflow;
     this.tlsState                    = tlsState;
     this.remoteAddrStr               = remoteAddrStr;
     this.writeSched                  = writeSched;
     this.serveG                      = serveG;
     this.pushEnabled                 = pushEnabled;
     this.sawFirstSettings            = sawFirstSettings;
     this.needToSendSettingsAck       = needToSendSettingsAck;
     this.unackedSettings             = unackedSettings;
     this.queuedControlFrames         = queuedControlFrames;
     this.clientMaxStreams            = clientMaxStreams;
     this.advMaxStreams               = advMaxStreams;
     this.curClientStreams            = curClientStreams;
     this.curPushedStreams            = curPushedStreams;
     this.maxClientStreamID           = maxClientStreamID;
     this.maxPushPromiseID            = maxPushPromiseID;
     this.streams                     = streams;
     this.initialStreamSendWindowSize = initialStreamSendWindowSize;
     this.maxFrameSize                = maxFrameSize;
     this.headerTableSize             = headerTableSize;
     this.peerMaxHeaderListSize       = peerMaxHeaderListSize;
     this.canonHeader                 = canonHeader;
     this.writingFrame                = writingFrame;
     this.writingFrameAsync           = writingFrameAsync;
     this.needsFrameFlush             = needsFrameFlush;
     this.inGoAway                    = inGoAway;
     this.inFrameScheduleLoop         = inFrameScheduleLoop;
     this.needToSendGoAway            = needToSendGoAway;
     this.goAwayCode                  = goAwayCode;
     this.shutdownTimer               = shutdownTimer;
     this.idleTimer                   = idleTimer;
     this.headerWriteBuf              = headerWriteBuf;
     this.hpackEncoder                = hpackEncoder;
     this.shutdownOnce                = shutdownOnce;
 }
Esempio n. 10
0
 public persistConn(RoundTripper alt = default, ref ptr <Transport> t = default, connectMethodKey cacheKey = default, net.Conn conn = default, ref ptr <tls.ConnectionState> tlsState = default, ref ptr <bufio.Reader> br = default, ref ptr <bufio.Writer> bw = default, long nwrite = default, channel <requestAndChan> reqch = default, channel <writeRequest> writech = default, channel <object> closech = default, bool isProxy = default, bool sawEOF = default, long readLimit = default, channel <error> writeErrCh = default, channel <object> writeLoopDone = default, time.Time idleAt = default, ref ptr <time.Timer> idleTimer = default, sync.Mutex mu = default, long numExpectedResponses = default, error closed = default, error canceledErr = default, bool broken = default, bool reused = default, Action <Header> mutateHeaderFunc = default)
 {
     this.alt                  = alt;
     this.t                    = t;
     this.cacheKey             = cacheKey;
     this.conn                 = conn;
     this.tlsState             = tlsState;
     this.br                   = br;
     this.bw                   = bw;
     this.nwrite               = nwrite;
     this.reqch                = reqch;
     this.writech              = writech;
     this.closech              = closech;
     this.isProxy              = isProxy;
     this.sawEOF               = sawEOF;
     this.readLimit            = readLimit;
     this.writeErrCh           = writeErrCh;
     this.writeLoopDone        = writeLoopDone;
     this.idleAt               = idleAt;
     this.idleTimer            = idleTimer;
     this.mu                   = mu;
     this.numExpectedResponses = numExpectedResponses;
     this.closed               = closed;
     this.canceledErr          = canceledErr;
     this.broken               = broken;
     this.reused               = reused;
     this.mutateHeaderFunc     = mutateHeaderFunc;
 }
Esempio n. 11
0
 private static (net.Addr, error) connect(this ptr <socksDialer> _addr_d, context.Context ctx, net.Conn c, @string address) => func((defer, _, __) =>
Esempio n. 12
0
 public conn(ref ptr <Server> server = default, context.CancelFunc cancelCtx = default, net.Conn rwc = default, @string remoteAddr = default, ref ptr <tls.ConnectionState> tlsState = default, error werr = default, ref ptr <connReader> r = default, ref ptr <bufio.Reader> bufr = default, ref ptr <bufio.Writer> bufw = default, @string lastMethod = default, atomic.Value curReq = default, sync.Mutex mu = default, bool hijackedv = default)
 {
     this.server     = server;
     this.cancelCtx  = cancelCtx;
     this.rwc        = rwc;
     this.remoteAddr = remoteAddr;
     this.tlsState   = tlsState;
     this.werr       = werr;
     this.r          = r;
     this.bufr       = bufr;
     this.bufw       = bufw;
     this.lastMethod = lastMethod;
     this.curReq     = curReq;
     this.mu         = mu;
     this.hijackedv  = hijackedv;
 }
Esempio n. 13
0
 // Server returns a new TLS server side connection
 // using conn as the underlying transport.
 // The configuration config must be non-nil and must include
 // at least one certificate or else set GetCertificate.
 public static ptr <Conn> Server(net.Conn conn, ptr <Config> _addr_config)
 {
     ref Config config = ref _addr_config.val;
Esempio n. 14
0
 // NewServerConn is an artifact of Go's early HTTP implementation.
 // It is low-level, old, and unused by Go's current HTTP stack.
 // We should have deleted it before Go 1.
 //
 // Deprecated: Use the Server in package net/http instead.
 public static ptr <ServerConn> NewServerConn(net.Conn c, ptr <bufio.Reader> _addr_r)
 {
     ref bufio.Reader r = ref _addr_r.val;
Esempio n. 15
0
 public RecordHeaderError(@string Msg = default, array <byte> RecordHeader = default, net.Conn Conn = default)
 {
     this.Msg          = Msg;
     this.RecordHeader = RecordHeader;
     this.Conn         = Conn;
 }