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