TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Marcus Kida.
Gets you a random free TCP Port using C APIs
You may use a Singleton Instance of MKIPorter to allocate a free TCP Port like this like this:
MKIPorter *porter = [MKIPorter sharedInstance];
NSError *error;
NSInteger port = [porter allocatePort:&error];
if (error) {
NSLog(@"An error occured: %@", error);
return;
}
NSLog(@"Free Port: %d", port);
Marcus Kida, [email protected]
MKIPorter is available under the MIT license. See the LICENSE file for more info.