networkclient
socket.c File Reference

Sending and receiving packets. More...

#include <networkradius-devel/client.h>
#include <sys/socket.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
Include dependency graph for socket.c:

Functions

ssize_t nr_socket_recv (RADIUS_PACKET *packet)
 
ssize_t nr_socket_recv_response (RADIUS_PACKET *packet, const RADIUS_PACKET *original)
 
int nr_socket_send (RADIUS_PACKET *packet)
 
int nr_socket_send_response (RADIUS_PACKET *packet, const RADIUS_PACKET *original)
 
struct sockaddr_storage * nr_ipv42sockaddr (uint32_t ipaddr, int port, struct sockaddr_storage *s)
 
int sockaddr_cmp (const struct sockaddr_storage *a, const struct sockaddr_storage *b)
 
int nr_socket_open (struct sockaddr_storage *s)
 
int nr_track_id_socket (nr_track_id_t *s, struct sockaddr_storage *src, struct sockaddr_storage *dst)
 

Detailed Description

Sending and receiving packets.