artdaq_mfextensions  v1_03_05
TCP_listen_fd.hh File Reference
#include <arpa/inet.h>
#include <errno.h>
#include <netdb.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <sys/socket.h>
#include "trace.h"

Go to the source code of this file.

Functions

int TCP_listen_fd (int port, int rcvbuf)
 Create a TCP listening socket on the given port and INADDR_ANY, with the given receive buffer. More...
 

Detailed Description

Defines a generator function for a TCP listen socket

Definition in file TCP_listen_fd.hh.

Function Documentation

int TCP_listen_fd ( int  port,
int  rcvbuf 
)

Create a TCP listening socket on the given port and INADDR_ANY, with the given receive buffer.

Parameters
portPort to listen on
rcvbufReceive buffer for socket. Set to 0 for TCP automatic buffer size
Returns
fd of new socket

Definition at line 32 of file TCP_listen_fd.hh.