public ConnectorHandle ListenStream(IProtocolFactory factory) { StreamSocketServerConnector connector = new StreamSocketServerConnector(this); connector.Listen(factory); return new ConnectorHandle(connector); }
public ConnectorHandle ListenStream(IProtocolFactory factory, int port, IPAddress address) { StreamSocketServerConnector connector = new StreamSocketServerConnector(this); connector.Listen(factory, port, address); return new ConnectorHandle(connector); }