public OscDirectory(int[] portList) { _dataStore = new Dictionary <string, Object[]>(); _servers = new OscServer[portList.Length]; for (var i = 0; i < portList.Length; i++) { _servers[i] = new OscServer(portList[i]); _servers[i].Start(); } }
public static OscServer GetSharedServer(int port, string multicast) { OscServer server; if (!_servers.TryGetValue(port, out server)) { server = new OscServer(port, multicast); _servers[port] = server; } return(server); }