Defines | Typedefs | Functions | Variables

UnixNetAccept.cc File Reference

A brief file description. More...

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

Go to the source code of this file.

Defines

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

Typedefs

typedef int(NetAccept::* NetAcceptHandler )(int, void *)

Functions

static void safe_delay (int msec)
static int send_throttle_message (NetAccept *na)
int net_accept (NetAccept *na, void *ep, bool blockable)

Variables

volatile int dummy_volatile = 0
int accept_till_done = 1

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 UnixNetAccept.cc.


Define Documentation

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

Definition at line 29 of file UnixNetAccept.cc.

Referenced by NetAccept::acceptFastEvent().


Typedef Documentation

typedef int(NetAccept::* NetAcceptHandler)(int, void *)

Definition at line 31 of file UnixNetAccept.cc.


Function Documentation

int net_accept ( NetAccept na,
void *  ep,
bool  blockable 
)
static void safe_delay ( int  msec  )  [static]

Definition at line 36 of file UnixNetAccept.cc.

References SocketManager::poll(), and socketManager.

Referenced by NetAccept::do_blocking_accept(), and send_throttle_message().

static int send_throttle_message ( NetAccept na  )  [static]

Variable Documentation

volatile int dummy_volatile = 0

Definition at line 32 of file UnixNetAccept.cc.