tests/tcptest.cc File Reference

#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
#include <fstream>
#include <sstream>
#include "consmgr.h"
#include "sockconn.h"
#include "ipsockaddr.h"
#include "socklistener.h"

Include dependency graph for tcptest.cc:

Go to the source code of this file.

Functions

static int tcp_test ()
static void accept_and_send_on_connection (Listener *listener, SocketAddressP &where)
static void * socket_sender_thread (void *addr)
static void socket_sender (SocketAddressP &where)
int main (int argc, char *argv[])


Function Documentation

static int tcp_test (  )  [static]

Definition at line 74 of file tcptest.cc.

References accept_and_send_on_connection(), and Listener::disconnect().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void accept_and_send_on_connection ( Listener listener,
SocketAddressP where 
) [static]

Definition at line 108 of file tcptest.cc.

References Listener::get_id(), Listener::listen_for_incoming(), PTHREAD_CHECK_AND_THROW, and socket_sender_thread().

Referenced by tcp_test(), and uds_test().

Here is the call graph for this function:

Here is the caller graph for this function:

void * socket_sender_thread ( void *  addr  )  [static]

Definition at line 139 of file tcptest.cc.

References socket_sender().

Referenced by accept_and_send_on_connection().

Here is the call graph for this function:

Here is the caller graph for this function:

void socket_sender ( SocketAddressP where  )  [static]

Definition at line 149 of file tcptest.cc.

References SocketAddress::get_addr(), IPSocketAddress::port(), and Connector::write().

Referenced by socket_sender_thread().

Here is the call graph for this function:

Here is the caller graph for this function:

int main ( int  argc,
char *  argv[] 
)

Definition at line 63 of file tcptest.cc.

References tcp_test().

Here is the call graph for this function:


Generated on Tue May 13 11:32:42 2008 for consmgr by  doxygen 1.5.5