コード例 #1
0
ファイル: Program.cs プロジェクト: zhxzhlx/Cowboy
        private static void OnServerBinaryReceived(object sender, WebSocketServerBinaryReceivedEventArgs e)
        {
            var text = Encoding.UTF8.GetString(e.Data, e.DataOffset, e.DataLength);

            Console.Write(string.Format("WebSocket server [{0}] received Binary --> ", e.Client.RemoteEndPoint));
            Console.WriteLine(string.Format("{0}", text));
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: cube3power/Cowboy
 private static void OnServerBinaryReceived(object sender, WebSocketServerBinaryReceivedEventArgs e)
 {
     var text = Encoding.UTF8.GetString(e.Data, e.DataOffset, e.DataLength);
     Console.Write(string.Format("WebSocket server [{0}] received Binary --> ", e.Client.RemoteEndPoint));
     Console.WriteLine(string.Format("{0}", text));
 }