Inherits from NSObject
Conforms to NSStreamDelegate
Declared in BitSwarmClient.h
BitSwarmClient.m

Instance Methods

onSocketClose:

This method should never get used Ported from AS3 because of the AS3 security behaviour, however Obj-C does not behave the same way

- (void)onSocketClose:(BitSwarmEvent *)event

Discussion

This method should never get used Ported from AS3 because of the AS3 security behaviour, however Obj-C does not behave the same way

-(void) onSocketSecurityError:(BitSwarmEvent *)event { // Reconnection failure if (attemptingReconnection) { [self performSelector:@selector(reconnect:) withObject:[NSDictionary dictionaryWithObjectsAndKeys:lastIpAddress, @“ip”, [NSNumber numberWithInt:(int)_lastTcpPort], @“port”, nil]]; return; }

BitSwarmEvent *evt = [[[BitSwarmEvent alloc] initWithType:BitSwarmEvent_SECURITY_ERROR params:event.params] autorelease];

[_delegate onSocketSecurityError:evt];

}

Declared In

BitSwarmClient.m