tcp_comm.h File Reference

#include "defs.h"

Include dependency graph for tcp_comm.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define CONN_CLOSED   -2
#define CONN_ERROR   -1
#define CONN_SUCCESS   1
#define MAX_AAA_MSG_SIZE   65536
#define MAX_WAIT_SEC   2
#define MAX_WAIT_USEC   0

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 *resp, unsigned int id)


Define Documentation

#define CONN_CLOSED   -2

Definition at line 42 of file tcp_comm.h.

Referenced by do_read(), and tcp_send_recv().

#define CONN_ERROR   -1

Definition at line 41 of file tcp_comm.h.

Referenced by do_read(), and tcp_send_recv().

#define CONN_SUCCESS   1

Definition at line 40 of file tcp_comm.h.

Referenced by do_read().

#define MAX_AAA_MSG_SIZE   65536

Definition at line 38 of file tcp_comm.h.

Referenced by do_read().

#define MAX_WAIT_SEC   2

Definition at line 35 of file tcp_comm.h.

Referenced by tcp_send_recv().

#define MAX_WAIT_USEC   0

Definition at line 36 of file tcp_comm.h.

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 resp,
unsigned int  id 
)


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