#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"

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[]) |
| 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().


| 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().


| 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().


| 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().


| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Definition at line 63 of file tcptest.cc.
References tcp_test().

1.5.5