BitSwarmClient Class Reference
| Inherits from | NSObject | 
| Conforms to | NSStreamDelegate | 
| Declared in | BitSwarmClient.h BitSwarmClient.m | 
Tasks
- 
	
		– 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 
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 *)eventDiscussion
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