public void SendChatMessage(bool local, IPEndPoint target, Core.Chat.Transport.Message message) { byte[] data = SerializationHelper.Serialize(message); if (local) { chatPipe.Send(target, data); } else { Send(target, new ForwardChatMessage() { Message = data }); } }
public void Send(Message message) { byte[] data = SerializationHelper.Serialize(message); pipe.Send(message.Recipient.Address, data); }
void Send(IPEndPoint target, Message message) { bridgePipe.Send(target, SerializationHelper.Serialize(message)); }
public void Send(IPEndPoint target, Message message) { byte[] data = SerializationHelper.Serialize(message); pipe.Send(target, data); }