static INetProtocol ConstructWebsocket(INetSocket socket) { if (!Server.Config.WebClient) { return(null); } return(new WebSocket(socket)); }
public SecureSocket(INetSocket socket) { raw = socket; wrapper = new WrapperStream(); wrapper.s = this; ssl = new SslStream(wrapper); new Thread(IOThread).Start(); }
public WebSocket(INetSocket socket) { s = socket; }
public WebSocket(INetSocket socket) { IP = socket.IP; s = socket; }
public ClassicProtocol(INetSocket s) { socket = s; player = new Player(s, this); }
static INetProtocol ConstructClassic(INetSocket socket) { return(new ClassicProtocol(socket)); }