Example #1
0
 protected EasyTcp(ConnectOptions options)
 {
     _easyBase = new EasyBase(options, ConnectMode.Tcp)
     {
         Received          = Received,
         SendFunctionAsync = SendAsync
     };
     ConnectOptions = options ?? throw new ArgumentNullException(nameof(options));
 }
Example #2
0
        protected EasyUdp([NotNull] ConnectOptions options)
        {
            ConnectOptions = options ?? throw new ArgumentNullException(nameof(options));

            _easyBase = new EasyBase(options, ConnectMode.Udp)
            {
                Received          = Received,
                SendFunctionAsync = SendAsync
            };
        }