public UdpNetworkCommunication(IPAddress ipAddress, int sendPort = 4003, int receivePort = 4003) { var receiver = new UdpReceiver(receivePort, new IPAddress[] { ipAddress }); this.Initialize(ipAddress, sendPort, receiver); }
public UdpNetworkCommunication(IPAddress ipAddress, UdpReceiver receiver, int sendPort = 4003) { this._externalReceiver = true; this.Initialize(ipAddress, sendPort, receiver); }