Changeset 4472:6c6c758d2b1b in roaraudio


Ignore:
Timestamp:
10/10/10 23:18:41 (8 years ago)
Author:
phi
Branch:
default
Message:

added parsing of auth message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/req.c

    r4468 r4472  
    101101int req_on_auth        (int client, struct roar_message * mes, char ** data, uint32_t flags[2]) { 
    102102 struct roar_client_server * cs; 
     103 struct roar_auth_message    authmes; 
    103104 
    104105 clients_get_server(client, &cs); 
    105106 
    106107 // TODO: add code to support some auth. 
     108 
     109 if ( roar_auth_from_mes(&authmes, mes, *data) == -1 ) 
     110  return -1; 
     111 
     112 ROAR_DBG("req_on_auth(client=%i,...): authtype=%s(%i)", client, roar_autht2str(authmes.type), authmes.type); 
    107113 
    108114 cs->acclev = ACCLEV_ALL; 
Note: See TracChangeset for help on using the changeset viewer.