tcp_comm.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <errno.h>
#include "../../mem/mem.h"
#include "../../dprint.h"
#include "../../str.h"
#include "auth_diameter.h"
#include "defs.h"
#include "tcp_comm.h"
#include "diameter_msg.h"

Include dependency graph for tcp_comm.c:

Go to the source code of this file.

Defines

#define MAX_TRIES   10

Functions

void close_tcp_connection (int sfd)
int do_read (int socket, rd_buf_t *p)
int init_mytcp (char *host, int port)
void reset_read_buffer (rd_buf_t *rb)
int tcp_send_recv (int sockfd, char *buf, int len, rd_buf_t *rb, unsigned int waited_id)


Define Documentation

#define MAX_TRIES   10

Definition at line 53 of file tcp_comm.c.

Referenced by tcp_send_recv().


Function Documentation

void close_tcp_connection ( int  sfd  ) 

Definition at line 332 of file tcp_comm.c.

Referenced by destroy().

int do_read ( int  socket,
rd_buf_t p 
)

int init_mytcp ( char *  host,
int  port 
)

Definition at line 56 of file tcp_comm.c.

References LM_ERR, NULL, and sockfd.

Referenced by child_init(), diameter_authorize(), diameter_is_user_in(), and mod_child_init().

void reset_read_buffer ( rd_buf_t rb  ) 

int tcp_send_recv ( int  sockfd,
char *  buf,
int  len,
rd_buf_t rb,
unsigned int  waited_id 
)


Generated on Thu May 24 20:00:44 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6