예제 #1
0
파일: Net.cs 프로젝트: ea5y/CSharpTest
        public static void Login(Action <LoginDataRes> callback)
        {
            var data = new RegisterData()
            {
                Username = "******", Password = "******"
            };
            var bytes = PackageFactory.Pack(1002, data, callback);

            SocketClient.Send(bytes);
        }
예제 #2
0
 //4.Start heartbeat
 private static void BuildHeartbeatHeadPackage()
 {
     _heartbeatBytes = PackageFactory.Pack(1, new BaseReqData());
 }