#include <gui_rpc_server.h>

Public Member Functions | |
| GUI_RPC_CONN (int) | |
| ~GUI_RPC_CONN () | |
| int | handle_rpc () |
| void | handle_auth1 (MIOFILE &) |
| int | handle_auth2 (char *, MIOFILE &) |
| void | handle_get_project_config (char *buf, MIOFILE &fout) |
| void | handle_get_project_config_poll (char *, MIOFILE &fout) |
| void | handle_lookup_account (char *buf, MIOFILE &fout) |
| void | handle_lookup_account_poll (char *, MIOFILE &fout) |
| void | handle_create_account (char *buf, MIOFILE &fout) |
| void | handle_create_account_poll (char *, MIOFILE &fout) |
Public Attributes | |
| int | sock |
| char | nonce [256] |
| bool | auth_needed |
| if true, don't allow operations other than authentication | |
| bool | got_auth1 |
| bool | got_auth2 |
| bool | sent_unauthorized |
| bool | is_local |
| connection is from local host | |
| int | au_ss_state |
| int | au_mgr_state |
| GUI_HTTP | gui_http |
| GET_PROJECT_CONFIG_OP | get_project_config_op |
| LOOKUP_ACCOUNT_OP | lookup_account_op |
| CREATE_ACCOUNT_OP | create_account_op |
| GUI_RPC_CONN::GUI_RPC_CONN | ( | int | s | ) |
| GUI_RPC_CONN::~GUI_RPC_CONN | ( | ) |

| int GUI_RPC_CONN::handle_rpc | ( | ) |


| void GUI_RPC_CONN::handle_auth1 | ( | MIOFILE & | fout | ) |


| int GUI_RPC_CONN::handle_auth2 | ( | char * | buf, | |
| MIOFILE & | fout | |||
| ) |


| void GUI_RPC_CONN::handle_get_project_config | ( | char * | buf, | |
| MIOFILE & | fout | |||
| ) |


| void GUI_RPC_CONN::handle_get_project_config_poll | ( | char * | , | |
| MIOFILE & | fout | |||
| ) |


| void GUI_RPC_CONN::handle_lookup_account | ( | char * | buf, | |
| MIOFILE & | fout | |||
| ) |


| void GUI_RPC_CONN::handle_lookup_account_poll | ( | char * | , | |
| MIOFILE & | fout | |||
| ) |


| void GUI_RPC_CONN::handle_create_account | ( | char * | buf, | |
| MIOFILE & | fout | |||
| ) |


| void GUI_RPC_CONN::handle_create_account_poll | ( | char * | , | |
| MIOFILE & | fout | |||
| ) |


| char GUI_RPC_CONN::nonce[256] |
if true, don't allow operations other than authentication
keep track of whether we've got the 2 authentication msgs; don't accept more than one of each (to prevent DoS)
we've send one <unauthorized>. On next auth failure, disconnect
connection is from local host
1.5.6