public bool ClientSend(byte dataChannel, DeliveryMethod deliveryMethod, NetDataWriter writer) { if (IsClientStarted) { clientPeer.SendData(writer.Data, writer.Length); return(true); } return(false); }
public bool ServerSend(long connectionId, byte dataChannel, DeliveryMethod deliveryMethod, NetDataWriter writer) { if (IsServerStarted) { serverPeer.SendData(connectionId, writer.Data, writer.Length); return(true); } return(false); }