Skip to content

Commit

Permalink
Update Example projects parameter type
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilhelmina Drengwitz committed Jul 21, 2015
1 parent 295b1a0 commit 8305c4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Peertalk Example/PTAppDelegate.m
Expand Up @@ -287,7 +287,7 @@ - (void)enqueueConnectToLocalIPv4Port {
- (void)connectToLocalIPv4Port {
PTChannel *channel = [PTChannel channelWithDelegate:self];
channel.userInfo = [NSString stringWithFormat:@"127.0.0.1:%d", PTExampleProtocolIPv4PortNumber];
[channel connectToPort:PTExampleProtocolIPv4PortNumber IPv4Address:INADDR_LOOPBACK callback:^(NSError *error, PTAddress *address) {
[channel connectToPort:PTExampleProtocolIPv4PortNumber IPv4Address:@"127.0.0.1" callback:^(NSError *error, PTAddress *address) {
if (error) {
if (error.domain == NSPOSIXErrorDomain && (error.code == ECONNREFUSED || error.code == ETIMEDOUT)) {
// this is an expected state
Expand Down
2 changes: 1 addition & 1 deletion Peertalk iOS Example/PTViewController.m
Expand Up @@ -25,7 +25,7 @@ - (void)viewDidLoad {

// Create a new channel that is listening on our IPv4 port
PTChannel *channel = [PTChannel channelWithDelegate:self];
[channel listenOnPort:PTExampleProtocolIPv4PortNumber IPv4Address:INADDR_LOOPBACK callback:^(NSError *error) {
[channel listenOnPort:PTExampleProtocolIPv4PortNumber IPv4Address:@"127.0.0.1" callback:^(NSError *error) {
if (error) {
[self appendOutputMessage:[NSString stringWithFormat:@"Failed to listen on 127.0.0.1:%d: %@", PTExampleProtocolIPv4PortNumber, error]];
} else {
Expand Down

0 comments on commit 8305c4a

Please sign in to comment.