예제 #1
0
 public static void Send <T>(TcpSocketSession client, T t)
 {
     client.Send(ProtoBufHelper.ObjectToBytes <T>(t));
 }
예제 #2
0
 public void Send(byte[] data, int offset, int count)
 {
     _session.Send(data, offset, count);
 }
예제 #3
0
 public static void SendJson(TcpSocketSession client, string t)
 {
     byte[] buffer = Encoding.UTF8.GetBytes(t);
     client.Send(buffer);
 }