-rw-r--r-- | pumpkin/StringsAttached.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pumpkin/StringsAttached.h b/pumpkin/StringsAttached.h new file mode 100644 index 0000000..fa73ae0 --- a/dev/null +++ b/pumpkin/StringsAttached.h @@ -0,0 +1,11 @@ + +#import <Foundation/Foundation.h> +#include <netinet/in.h> + +@interface NSString (StringsAttached) + ++ stringWithSocketAddress:(const struct sockaddr_in*)sin; ++ stringWithHostAddress:(const struct sockaddr_in*)sin; ++ stringWithPortNumber:(const struct sockaddr_in*)sin; + +@end |