2 var <name, <hostname, <port, <protocol;
4 // the way OSCServers should be created
6 var services, numberOfKnownServices;
7 numberOfKnownServices = this.numberOfKnownServices;
8 services = Array.new(numberOfKnownServices);
9 numberOfKnownServices.do({arg index;
11 service = OSCService.new;
12 this.prInitOSCService(service, index);
13 services.add(service);
19 *knownAddresses { arg applicationType="SuperCollider", protocol=\udp;
21 this.knownServices.do { arg item;
22 if(applicationType.isNil or: { item.name == applicationType }
23 and: { protocol.isNil or: { item.protocol == protocol } }, {
24 addr = addr.add(item.netAddr);
31 *numberOfKnownServices {
36 ^NetAddr.new(hostname, port);
40 *prInitOSCService { arg server, index;
45 stream << this.class.name << "(" <<* [name, hostname, port, protocol ? \unknown] <<")"