Esempio n. 1
0
 private void WriteHello(HelloMessage message)
 {
     try
     {
         Packer.packStructHeader(0, HelloMessage.SIGNATURE);
         Packer.pack(ValueUtils.asMapValue(message.Meta()));
     }
     catch (IOException e)
     {
         throw new UncheckedIOException(e);
     }
 }
Esempio n. 2
0
 private void WriteInit(InitMessage message)
 {
     try
     {
         Packer.packStructHeader(2, InitMessage.SIGNATURE);
         Packer.pack(message.UserAgent());
         Packer.pack(ValueUtils.asMapValue(message.AuthToken()));
     }
     catch (IOException e)
     {
         throw new UncheckedIOException(e);
     }
 }