src/artdaq/DAQdata/TCP_listen_fd.hh File Reference

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.

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:
port Port to listen on
rcvbuf Receive buffer for socket. Set to 0 for TCP automatic buffer size
Returns:
fd of new socket

Definition at line 23 of file TCP_listen_fd.cc.


Generated on 24 Sep 2018 for artdaq by  doxygen 1.6.1