src/mfextensions/Receivers/detail/TCP_listen_fd.hh File Reference

#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <errno.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.

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 33 of file TCP_listen_fd.hh.


Generated on 7 Jun 2018 for artdaq_mfextensions by  doxygen 1.6.1