コード例 #1
0
ファイル: Authentication.cs プロジェクト: evelinad/Talk2Me
 public static Authentication Desserialize(byte[] data)
 {
     Authentication result = new Authentication();
     using (MemoryStream m = new MemoryStream(data))
     {
         using (BinaryReader reader = new BinaryReader(m))
         {
             result.Username = reader.ReadString();
             result.Password = reader.ReadString();
             result.Email = reader.ReadString();
         }
     }
     return result;
 }
コード例 #2
0
ファイル: Server.cs プロジェクト: evelinad/Talk2Me
        public static void message(Authentication mess, Socket handler)
        {


        }