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