public void SendMessage(MessageBase msg) { var om = InnerClient.CreateMessage(); msg.Write(om); SendMessage(om); }
public void Connect(String ip, int port) { if (InnerClient.Status != NetPeerStatus.Running) { InnerClient.Start(); NetOutgoingMessage hail = InnerClient.CreateMessage("This is the hail message"); InnerClient.Connect(ip, port, hail); } }