예제 #1
0
        public TestClient(int serverPort, int clientIndex)
        {
            _index  = clientIndex;
            _clietn = new ScsClient(ScsServiseTest.GetUserLogin(clientIndex), "127.0.0.1", serverPort);

            _clietn.OnUserLogin += Client_OnUserLogin;

            _clietn.Connect();
        }
예제 #2
0
 int GetUserIndex(ReceivedMsg msg)
 {
     return(ScsServiseTest.GetUserIndexFromLogin(GetUser(msg).Login));
 }