Esempio n. 1
0
 public Server(@string URL = default, net.Listener Listener = default, bool EnableHTTP2 = default, ref ptr <tls.Config> TLS = default, ref ptr <http.Server> Config = default, ref ptr <x509.Certificate> certificate = default, sync.WaitGroup wg = default, sync.Mutex mu = default, bool closed = default, map <net.Conn, http.ConnState> conns = default, ref ptr <http.Client> client = default)
 {
     this.URL         = URL;
     this.Listener    = Listener;
     this.EnableHTTP2 = EnableHTTP2;
     this.TLS         = TLS;
     this.Config      = Config;
     this.certificate = certificate;
     this.wg          = wg;
     this.mu          = mu;
     this.closed      = closed;
     this.conns       = conns;
     this.client      = client;
 }
Esempio n. 2
0
 public listener(net.Listener Listener = default, ref ptr <Config> config = default)
 {
     this.Listener = Listener;
     this.config   = config;
 }
 public onceCloseListener(net.Listener Listener = default, sync.Once once = default, error closeErr = default)
 {
     this.Listener = Listener;
     this.once     = once;
     this.closeErr = closeErr;
 }