Defines | Functions

Connection.cc File Reference

A brief file description. More...

#include "libts.h"
#include "P_Net.h"
Include dependency graph for Connection.cc:

Go to the source code of this file.

Defines

#define SET_TCP_NO_DELAY
#define SET_NO_LINGER
#define FIRST_RANDOM_PORT   16000
#define LAST_RANDOM_PORT   32000
#define ROUNDUP(x, y)   ((((x)+((y)-1))/(y))*(y))
#define FD_CLOEXEC   1

Functions

int get_listen_backlog (void)
static int add_http_filter (int fd ATS_UNUSED)

Detailed Description

A brief file description.

License

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file Connection.cc.


Define Documentation

#define FD_CLOEXEC   1
#define FIRST_RANDOM_PORT   16000

Definition at line 39 of file Connection.cc.

#define LAST_RANDOM_PORT   32000

Definition at line 40 of file Connection.cc.

#define ROUNDUP (   x,
  y 
)    ((((x)+((y)-1))/(y))*(y))

Definition at line 42 of file Connection.cc.

Referenced by Server::setup_fd_for_listen().

#define SET_NO_LINGER

Definition at line 35 of file Connection.cc.

#define SET_TCP_NO_DELAY

Definition at line 34 of file Connection.cc.


Function Documentation

static int add_http_filter ( int fd  ATS_UNUSED  )  [static]

Definition at line 143 of file Connection.cc.

Referenced by Server::setup_fd_for_listen().

int get_listen_backlog ( void   ) 

Definition at line 49 of file Connection.cc.

References REC_ReadConfigInteger.

Referenced by Server::listen().