// Constructor. public UDPSend(string _remoteIP, int _remotePort = 12121) { this.remoteIP = _remoteIP; this.remotePort = _remotePort; this.debugMessages = new List <string>(); this.sender = new ThreadInterface(SendFromQueue); }
public FindServer() { try { FindServer.receiver = new UDPReceive(this.localPortOverride); FindServer.receiver.OnReceive = OnDeviceReceived; FindServer.deviceUpdater = new ThreadInterface(); FindServer.deviceUpdater.threadAction = UpdateDevices; } catch {} }
// Main Constructor public TCPSend(string _remoteIP, int _remotePort = 11111) { this.remoteIP = _remoteIP; this.remotePort = _remotePort; this.debugMessages = new List <string>(); this.sender = new ThreadInterface(SendFromQueue); // Reset. Disconnect(); }
// Start is called before the first frame update void OnEnable() { this.requestData = Encoding.ASCII.GetBytes(this.broadcastMessage); this.udpBroadcaster = new UDPSend(string.Empty, this.remotePort); // this.broadcastingRoutine = BroadcastingRoutine(); // StartCoroutine(this.broadcastingRoutine); this.broadcastingThread = new ThreadInterface(Broadcast, Convert.ToInt32(this.expireTime) * 1000); this.broadcastingThread.Start(); }
// Constructor. public UDPReceive(int _localPort = 8055) { this.localPort = _localPort; this.debugMessages = new List <string>(); #if !WINDOWS_UWP this.receiver = new ThreadInterface(ReceiveData); #endif this.dataMessages = new Queue <string>(); this.connectionHistory = new Queue <string>(); //this.dataMessages = new List<string>(); //this.connectionHistory = new List<string>(); Disconnect(); }
public void OnEnable() { this.environmentMeshExtractor = new ThreadInterface(SendData, this.delayTime); }