socket.cc File Reference
#include "squid.h"
#include "socket.hh"
#include <cerrno>
#include <cstring>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <unistd.h>
#include "convert.hh"
Include dependency graph for socket.cc:
Go to the source code of this file.
Functions | |
int | setSocketBuffers (int sockfd, int size) |
int | getSocketNoDelay (int sockfd) |
int | setSocketNoDelay (int sockfd, bool) |
static int | commonCode (int &sockfd, bool nodelay, int sendBufferSize, int recvBufferSize) |
int | connectTo (struct in_addr host, unsigned short port, bool nodelay, int sendBufferSize, int recvBufferSize) |
int | serverSocket (struct in_addr host, unsigned short port, int backlog, bool reuse, bool nodelay, int sendBufferSize, int recvBufferSize) |
Function Documentation
◆ commonCode()
Definition at line 124 of file socket.cc.
References sockfd.
Referenced by connectTo(), and serverSocket().
◆ connectTo()
◆ getSocketNoDelay()
◆ serverSocket()
int serverSocket | ( | struct in_addr | host, |
unsigned short | port, | ||
int | backlog, | ||
bool | reuse, | ||
bool | nodelay, | ||
int | sendBufferSize, | ||
int | recvBufferSize | ||
) |
Definition at line 203 of file socket.cc.
References commonCode(), my_sock_ntoa(), port, SA, server, sockfd, and strerror().