コード例 #1
0
        public static void ReqNoResponse(ref System.ValueType value)
        {
            //전송 부분
            byte[] plainBytes  = CryptoGraphyHelper.GetByteFromStruct(value);
            byte[] cipherBytes = CryptoGraphyHelper.GetCipherByte(plainBytes);

            socket.Send(cipherBytes);
        }
コード例 #2
0
        public static void ReqUntilResponse <T>(ref T value, UnityAction <object> successCallback, UnityAction <object> failCallback) where T : struct
        {
            //전송
            byte[] plainBytes  = CryptoGraphyHelper.GetByteFromStruct(value);
            byte[] cipherBytes = CryptoGraphyHelper.GetCipherByte(plainBytes);

            SocketAsyncEventArgs asyncObject = new SocketAsyncEventArgs();

            asyncObject.Completed += AsyncObject_Completed;
            //socket.SendAsync( cipherBytes );
        }