Home › Forums › Support › Encryption require to set NetworkComms.DefaultSendReceiveOptions › Reply To: Encryption require to set NetworkComms.DefaultSendReceiveOptions
May 19, 2014 at 23:16
#2593
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 10 years, 3 months ago by
.