Changeset 1467

Show
Ignore:
Timestamp:
08/10/04 19:57:23 (4 years ago)
Author:
morris
Message:

parse banner in connection

unbreak ping

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredClient/trunk/WCConnection.h

    r1429 r1467  
    1 /* $Id: WCConnection.h,v 1.18 2004/08/06 19:17:39 morris Exp $ */ 
     1/* $Id: WCConnection.h,v 1.19 2004/08/10 17:57:23 morris Exp $ */ 
    22 
    33/* 
     
    138138#define WCConnectionGotServerInfo                       @"WCConnectionGotServerInfo" 
    139139#define WCConnectionServerInfoDidChange         @"WCConnectionServerInfoDidChange" 
     140#define WCConnectionGotServerBanner                     @"WCConnectionGotServerBanner" 
     141#define WCConnectionServerBannerDidChange       @"WCConnectionServerBannerDidChange" 
    140142#define WCConnectionGotPrivileges                       @"WCConnectionGotPrivileges" 
    141143#define WCConnectionPrivilegesDidChange         @"WCConnectionPrivilegesDidChange" 
  • WiredClient/trunk/WCConnection.m

    r1455 r1467  
    1 /* $Id: WCConnection.m,v 1.27 2004/08/09 21:09:40 morris Exp $ */ 
     1/* $Id: WCConnection.m,v 1.28 2004/08/10 17:57:23 morris Exp $ */ 
    22 
    33/* 
     
    238238        // --- get uid 
    239239        _uid = [uid intValue]; 
     240 
     241        // --- ping at intervals 
     242        _timer = [NSTimer scheduledTimerWithTimeInterval:60.0 
     243                                                                                          target:self 
     244                                                                                        selector:@selector(pingTimer:) 
     245                                                                                        userInfo:NULL 
     246                                                                                         repeats:YES]; 
     247        [_timer retain]; 
    240248} 
    241249 
     
    605613        _connected = YES; 
    606614         
    607         // --- ping at intervals 
    608         _timer = [NSTimer scheduledTimerWithTimeInterval:60 
    609                                                                                           target:self 
    610                                                                                         selector:@selector(pingTimer:) 
    611                                                                                         userInfo:NULL 
    612                                                                                          repeats:YES]; 
    613         [_timer retain]; 
    614          
    615615        // --- initial login 
    616616        [self sendCommand:WCHelloCommand withSender:self];