public ValueWebSocket(String ipAddress, Int32 port)
        {
            valueProtocol = new ValueProtocol();
            sessionManager = new SessionManager();

            server = new ValueServer(ipAddress, port, Encoding.UTF8);
            server.OnReceive += new ValueHelper.ValueSocket.Infrastructure.ReceiveHandler(server_OnReceive);
        }
Exemple #2
0
        static void Main(string[] args)
        {
            server = new ValueServer("127.0.0.1", 3000, Encoding.UTF8);
            server.Start();
            server.OnReceive += new ReceiveHandler(server_OnReceive);
            server.OnAccept += new AcceptHandler(server_OnAccept);

            //ValueHelper.ValueSocket.Server asd = new ValueHelper.ValueSocket.Server(1000, 1024);
            //asd.Init();
            //asd.Start(new IPEndPoint(IPAddress.Parse("127.0.0.1"), 3000));
            Console.ReadLine();
        }