MKIPorter 0.1.0

MKIPorter 0.1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Marcus Kida.



MKIPorter 0.1.0

Gets you a random free TCP Port using C APIs

Usage

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);

Requirements

Installation

Author

Marcus Kida, [email protected]

License

MKIPorter is available under the MIT license. See the LICENSE file for more info.