public static void ReqNoResponse(ref System.ValueType value) { //전송 부분 byte[] plainBytes = CryptoGraphyHelper.GetByteFromStruct(value); byte[] cipherBytes = CryptoGraphyHelper.GetCipherByte(plainBytes); socket.Send(cipherBytes); }
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 ); }