Ignore:
Timestamp:
03/20/08 09:46:58 (16 years ago)
Author:
niltonneto
Message:
 
Location:
trunk/instant_messenger/webjabber
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/instant_messenger/webjabber/webjabber.c

    r225 r238  
    5454                 * pass; 
    5555        int * jabber_fd, 
    56                 * read; 
     56                * read_fd; 
    5757        time_t last_access; 
    5858}; 
     
    632632                //puts("\n\n:::::::::::::::: INFO #0 :::::::::::::::::::::\n"); 
    633633                bzero(buf, 5); 
     634 
     635                //if ( *(client->read_fd) != (int)NULL ) 
     636                //{ 
     637                //      shutdown(*(client->read_fd), SHUT_RDWR); 
     638                //      close(*(client->read_fd)); 
     639                //} 
     640                //*(client->read_fd) = *(accept->fd); 
     641 
    634642                //puts("\n\n:::::::::::::::: INFO #1 :::::::::::::::::::::\n"); 
    635643                if ( *(client->jabber_fd) == (int)NULL ) 
     
    716724                connections->client->user = user; 
    717725                connections->client->pass = pass; 
     726 
     727                connections->client->read_fd = (int *) malloc(sizeof(int)); 
     728                if ( connections->client->read_fd == NULL ) 
     729                        syslog (LOG_ERR, "malloc(): %m"), exit (EXIT_FAILURE); 
     730 
    718731                connections->client->jabber_fd = (int *) malloc(sizeof(int)); 
    719732                if ( connections->client->jabber_fd == NULL ) 
    720733                        syslog (LOG_ERR, "malloc(): %m"), exit (EXIT_FAILURE); 
    721734 
     735                *(connections->client->read_fd) = (int)NULL; 
    722736                *(connections->client->jabber_fd) = (int)NULL; 
     737 
    723738                connections->client->last_access = time(NULL); 
    724739 
  • trunk/instant_messenger/webjabber/webjabber.cfg

    r225 r238  
    2210.15.20.205 
    3310.15.20.42 
     410.15.20.6 
    45127.0.0.1 
Note: See TracChangeset for help on using the changeset viewer.