#include <RadiusClientConnection.h>
Public Member Functions | |
RadiusClientConnection (RadiusClientStack *p_stack, const RadiusSecret &p_secret, const char *p_hostname, uint16_t p_port=D_RADIUS_AUTHENTICATION_PORT, int p_responseTimeout=5, int p_retransmitCount=4) | |
Constructor. | |
RadiusPacket * | sendPacket (RadiusPacket &p_packet) |
Send RADIUS packet. | |
Private Attributes | |
RadiusClientStack * | m_stack |
RADIUS stack that this connection belongs to. | |
RadiusSecret | m_secret |
RADIUS secret key. | |
RadiusPacket | m_packet |
RADIUS packet that is being currently received. | |
RadiusAddress | m_serverAddress |
Server address. | |
int | m_responseTimeout |
RADIUS server response timeout (in seconds). | |
int | m_retransmitCount |
Max number of packet retransmits towards specific connection. |
Each connection has it's own secret key and retransmission settings. Multiple connections can be used within the same RadiusClientStack for high-availability purposes (see documentation in RadiusClientStack class for details).
|
Constructor.
|
|
Send RADIUS packet. Send packet to RADIUS server and wait for response. Retransmit packet as needed, if no response is received. Note that this method is blocking - i.e. all (re)transmission is performed on the context of the calling thread.
|