Show
Ignore:
Timestamp:
02/20/05 17:55:20 (8 years ago)
Author:
minaguib
Message:

* Partial merge from CaptiveDNS branch: Consolidated much of the networking calls to the auth servers into a magical function called connect_auth_server() that's responsible for dns lookup, connecting, marking servers bad, marking online/auth_online, and refreshing the firewall rules.
* Partial merge from CaptiveDNS branch: Added new functions mark_auth_online(), mark_auth_offline() and is_auth_online() - similar in nature to is_online() etc. except tailored to decide on auth servers status - currently being called by connect_auth_server()
* Partial merge from CaptiveDNS branch: Different apology in 404 handler depending on whether internet is down or just auth server is down
* Partial merge from CaptiveDNS branch: wdctl status now shows status of is_online and is_auth_online

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog/src/centralserver.h

    r137 r469  
    3838int auth_server_request(t_authresponse *authresponse, char *request_type, char *ip, char *mac, char *token, long int incoming, long int outgoing); 
    3939 
     40/** @brief Tries really hard to connect to an auth server.  Returns a connected file descriptor or -1 on error */ 
     41int connect_auth_server(); 
     42 
     43/** @brief Helper function called by connect_auth_server() to do the actual work including recursion - do not call directly */ 
     44int _connect_auth_server(int level); 
     45 
    4046#endif /* _CENTRALSERVER_H_ */