CocoaPods trunk is moving to be read-only. Read more on the blog, there are 13 months to go.
| TestsTested | ✓ |
| LangLanguage | C++C++ |
| License | MIT |
| ReleasedLast Release | Feb 2016 |
Maintained by 256dpi.
objc OSC protocol implementation
OSCKit is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'OSCKit'Then import it and use it:
#import <OSCKit/OSCKit.h>Receiving messages:
OSCServer *server = [[OSCServer alloc] init];
server.delegate = self;
[server listen:8000];- (void)handleMessage:(OSCMessage*)message {
// do something with the message
}Bundles are handled by the server automatically and delegated using the same callback.
Sending messages:
OSCClient *client = [[OSCClient alloc] init];
OSCMessage *message = [OSCMessage to:@"/hello" with:@[@1, @"cool", @0.5f]]
[client sendMessage:message to:@"udp://localhost:8000"];Sending bundles:
OSCClient *client = [[OSCClient alloc] init];
OSCMessage *message1 = [OSCMessage to:@"/hello" with:@[@1, @"cool", @0.5f]]
OSCMessage *message2 = [OSCMessage to:@"/world" with:@[@"crazy", @876]]
[client sendMessages:@[message1, message2] to:@"udp://localhost:8000"];Joël Gähwiler, [email protected]
OSCKit is available under the MIT license. See the LICENSE file for more info.