Exemplo n.º 1
0
 static INetProtocol ConstructWebsocket(INetSocket socket)
 {
     if (!Server.Config.WebClient)
     {
         return(null);
     }
     return(new WebSocket(socket));
 }
Exemplo n.º 2
0
        public SecureSocket(INetSocket socket)
        {
            raw = socket;

            wrapper   = new WrapperStream();
            wrapper.s = this;

            ssl = new SslStream(wrapper);
            new Thread(IOThread).Start();
        }
Exemplo n.º 3
0
 public WebSocket(INetSocket socket)
 {
     s = socket;
 }
Exemplo n.º 4
0
 public WebSocket(INetSocket socket)
 {
     IP = socket.IP;
     s  = socket;
 }
Exemplo n.º 5
0
 public ClassicProtocol(INetSocket s)
 {
     socket = s;
     player = new Player(s, this);
 }
Exemplo n.º 6
0
 static INetProtocol ConstructClassic(INetSocket socket)
 {
     return(new ClassicProtocol(socket));
 }