Exemplo n.º 1
0
        public void Connect()
        {
            AL = new GingerSocketServer();
            AL.StratServer(7002);

            //TODO run on task since blocking... Task.Factory
            QTPConnected = true;
        }
Exemplo n.º 2
0
        public static void ClassInit(TestContext context)
        {
            mGingerSocketClient = new GingerSocketClient();

            mGingerSocketServer          = new GingerSocketServer();
            mGingerSocketServer.Message += mGingerSocketServer_Message;

            int ServerPort = SocketHelper.GetOpenPort();

            mGingerSocketServer.StratServer(ServerPort);
            mGingerSocketClient.Connect(SocketHelper.GetLocalHostIP(), ServerPort);
        }