Home Forums Support Encryption require to set NetworkComms.DefaultSendReceiveOptions Reply To: Encryption require to set NetworkComms.DefaultSendReceiveOptions

#2593
Anonymous
Inactive

Hi Marc,

I do it like that:

 var listener = new TCPConnectionListener(_options, ApplicationLayerProtocolStatus.Enabled);
                listener.AppendIncomingPacketHandler<string>("some message",
                                (header, connection, customObject) =>
                                {
                                    Console.WriteLine("\nReceived custom protobuf object from " + connection);
                                });
....
Connection.StartListening(listener, new IPEndPoint(ip, 0));

Thanks for quick response.

  • This reply was modified 7 years, 8 months ago by .