public static Binding Add(this List<Binding> self, IPAddress ipAddress, ushort port) { var binding = new Binding(ipAddress, port); self.Add(binding); return binding; }
public static Binding Add(this List<Binding> self, IPAddress ipAddress, ushort port, bool secure, X509Certificate2 certificate) { var binding = new Binding(ipAddress, port, secure, certificate); self.Add(binding); return binding; }
public ConnectionHandle(Socket socket, Binding binding, NiobServer server) { _socket = socket; _server = server; Binding = binding; HeaderLength = -1; ContentLength = -1; Id = Guid.NewGuid(); }