Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Get type specific information
- if([type isEqualToString:@"invite"] || [type isEqualToString:@"accept"])
- {
- routerType = [[self class] stringToRouterType:[[x elementForName:@"router"] stringValue]];
- ip = [[[x elementForName:@"ip"] stringValue] copy];
- port = [[[x elementForName:@"port"] stringValue] intValue];
- portRange = NSRangeFromString([[x elementForName:@"portRange"] stringValue]);
- }
- else if([type isEqualToString:@"callback"])
- {
- port = [[[x elementForName:@"port"] stringValue] intValue];
- portRange = NSRangeFromString([[x elementForName:@"portRange"] stringValue]);
- }
- else if([type isEqualToString:@"error"])
- {
- errorMessage = [[[x elementForName:@"message"] stringValue] copy];
- }
Add Comment
Please, Sign In to add comment