예제 #1
0
        public void OnTransportRead(ITcpSession session, ref WrappedReader reader, WrappedArgs args)
        {
            List <ReadOnlySequence <byte> > buffers = (List <ReadOnlySequence <byte> >)args.Value;

            for (int i = 0; i < buffers.Count; i++)
            {
                session.Write(SocketConfig.message);
            }

            session.FlushAsync().NoAwait();
        }
예제 #2
0
 private void OnStartSend()
 {
     _session.Write(common.SocketConfig.message);
     _session.FlushAsync().NoAwait();
 }