cpd_conn.h File Reference

Relating to managing the connections. More...

#include <sys/types.h>
#include <isc/eventlib.h>

Go to the source code of this file.

Functions

status_t init_connections (evContext ctx)
void close_connections (void)
void send_authorized_user (in_addr_t addr)
void send_repudiated_user (in_addr_t addr)


Detailed Description

Relating to managing the connections.

These functions and types will manage the connections.

Definition in file cpd_conn.h.


Function Documentation

void close_connections ( void   ) 

Terminate all the connections

Definition at line 437 of file cpd_conn.c.

References cpd_server, ped_client, and pfd_session.

Referenced by cpd_ctrl_quit().

status_t init_connections ( evContext  ctx  ) 

Initialize the server socket connection and client

Parameters:
[in] ctx event context
Returns:
SUCCESS if successful; otherwise EFAIL with an error message.

Definition at line 390 of file cpd_conn.c.

References connect_ped(), CPD_CPD_SERVER_MAX_CONN, CPD_PORT_NUM, cpd_server, evInitID, LOG, main_ctx, ped_client, ped_timer_id, pfd_session, receive_connection(), receive_message(), and RETRY_CONNECT.

Referenced by cpd_init().

void send_authorized_user ( in_addr_t  addr  ) 

Send the PFD the new authorized user

Parameters:
[in] addr The user's IP address in network byte order

Definition at line 463 of file cpd_conn.c.

References LOG, MSG_AUTH_ENTRY_ADD, and pfd_session.

Referenced by authorize_access().

void send_repudiated_user ( in_addr_t  addr  ) 

Send the PFD the new authorized user

Parameters:
[in] addr The user's IP address in network byte order

Definition at line 486 of file cpd_conn.c.

References LOG, MSG_AUTH_ENTRY_DEL, and pfd_session.

Referenced by repudiate_access().


2007-2009 Juniper Networks, Inc. All rights reserved. The information contained herein is confidential information of Juniper Networks, Inc., and may not be used, disclosed, distributed, modified, or copied without the prior written consent of Juniper Networks, Inc. in an express license. This information is subject to change by Juniper Networks, Inc. Juniper Networks, the Juniper Networks logo, and JUNOS are registered trademarks of Juniper Networks, Inc. in the United States and other countries. All other trademarks, service marks, registered trademarks, or registered service marks are the property of their respective owners.
Generated on Sun May 30 20:26:53 2010 for SDK Your Net Corporation Policy Manager Example: Captive Portal Daemon (cpd) 1.0 by Doxygen 1.5.1