예제 #1
0
        public async Task OnSessionDataReceived(TcpSocketRioSession session, byte[] data, int offset, int count)
        {
            var text = Encoding.UTF8.GetString(data, offset, count);
            //Console.Write(string.Format("Client : --> "));
            //Console.WriteLine(text);

            await session.SendAsync(Encoding.UTF8.GetBytes(text));
        }
예제 #2
0
 public async Task OnSessionStarted(TcpSocketRioSession session)
 {
     //Console.WriteLine(string.Format("TCP session {0} has connected {1}.", session.RemoteEndPoint, session));
     Console.WriteLine(string.Format("TCP session has connected {0}.", session));
     await Task.CompletedTask;
 }
예제 #3
0
 public async Task OnSessionClosed(TcpSocketRioSession session)
 {
     Console.WriteLine(string.Format("TCP session {0} has disconnected.", session));
     await Task.CompletedTask;
 }
예제 #4
0
 public async Task OnSessionStarted(TcpSocketRioSession session)
 {
     Console.WriteLine(string.Format("TCP session has connected {0}.", session));
     await Task.CompletedTask;
 }