Project Alice
Loading...
Searching...
No Matches
pcp_event_handler.h
Go to the documentation of this file.
1/*
2 Copyright (c) 2014 by Cisco Systems, Inc.
3 All rights reserved.
4
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions are met:
7
8 1. Redistributions of source code must retain the above copyright notice, this
9 list of conditions and the following disclaimer.
10 2. Redistributions in binary form must reproduce the above copyright notice,
11 this list of conditions and the following disclaimer in the documentation
12 and/or other materials provided with the distribution.
13
14 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
15 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
18 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
20 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
21 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
23 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#ifndef PCP_EVENT_HANDLER_H_
27#define PCP_EVENT_HANDLER_H_
28
29#include "pcp_msg_structs.h"
30
31typedef enum {
32 pfs_any = -1,
40 pfs_failed = 7
42
43typedef enum {
46
47typedef enum {
72
73typedef enum {
89
91
92typedef struct pcp_server pcp_server_t;
93
95
97
98#endif /* PCP_EVENT_HANDLER_H_ */
Definition: events.cpp:8
pcp_errno
Definition: pcp.h:65
void pcp_fd_change_notify(pcp_server_t *s, int added)
pcp_server_state_e
@ pss_wait_io
@ pss_ping
@ pss_unitialized
@ pss_allocated
@ pss_set_not_working
@ pss_server_restart
@ pss_not_working
@ pss_wait_io_calc_nearest_timeout
@ PSS_COUNT
@ pss_version_negotiation
@ pss_wait_ping_resp
@ pss_send_all_msgs
@ pss_any
@ pss_server_reping
void pcp_flow_updated(pcp_flow_t *f)
pcp_event_e
@ pcpe_timeout
@ pcpe_terminate
@ pcpe_io_event
@ pcpe_any
pcp_flow_event_e
@ fev_res_malformed_request
@ fev_res_unsupp_version
@ fev_res_malformed_option
@ fev_res_address_mismatch
@ fev_res_unsupp_protocol
@ fev_failed
@ fev_server_restarted
@ fev_server_initialized
@ fev_res_success
@ fev_send
@ fev_res_user_ex_quota
@ fev_res_unsupp_opcode
@ fev_res_network_failure
@ fev_none
@ fev_res_unsupp_option
@ fev_res_exc_remote_peers
@ fev_msg_sent
@ fev_res_cant_provide_ext
@ fev_flow_timedout
@ fev_res_not_authorized
@ FEV_RES_BEGIN
@ fev_res_no_resources
@ fev_ignored
pcp_flow_state_e
@ pfs_wait_for_lifetime_renew
@ pfs_any
@ pfs_send
@ pfs_send_renew
@ pfs_wait_after_short_life_error
@ pfs_failed
@ pfs_idle
@ pfs_wait_for_server_init
@ pfs_wait_resp
pcp_errno run_server_state_machine(pcp_server_t *s, pcp_event_e event)
#define PCP_RES_UNSUPP_OPTION
#define PCP_RES_ADDRESS_MISMATCH
#define PCP_RES_USER_EX_QUOTA
#define PCP_RES_NETWORK_FAILURE
#define PCP_RES_UNSUPP_OPCODE
#define PCP_RES_NO_RESOURCES
#define PCP_RES_SUCCESS
#define PCP_RES_NOT_AUTHORIZED
#define PCP_RES_UNSUPP_PROTOCOL
#define PCP_RES_EXCESSIVE_REMOTE_PEERS
#define PCP_RES_MALFORMED_REQUEST
#define PCP_RES_CANNOT_PROVIDE_EXTERNAL
#define PCP_RES_MALFORMED_OPTION
#define PCP_RES_UNSUPP_VERSION