Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9794ce0f08
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (18 sloc) 0.653 kb
#import <Foundation/Foundation.h>
#import <netinet/in.h>
@class Address;
@interface SocketAddress : NSObject
{
Address *_address;
NSUInteger _port;
}
@property (assign) NSUInteger port;
@property (retain) Address *address;
- (id)initWithAddress:(Address *)address port:(NSUInteger)port;
+ (SocketAddress *)socketAddressFromData:(NSData *)data;
+ (SocketAddress *)socketAddressFromSockaddr:(const struct sockaddr *)sockaddr;
+ (NSArray *)loopbackSocketAddressesWithService:(NSString *)service;
+ (NSArray *)wildcardSocketAddressesWithService:(NSString *)service;
- (struct sockaddr *)convertToSockaddr;
- (NSData *)convertToData;
@end
Jump to Line
Something went wrong with that request. Please try again.