Defines | Functions | Variables

UnixNetVConnection.cc File Reference

A brief file description. More...

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

Go to the source code of this file.

Defines

#define STATE_VIO_OFFSET   ((uintptr_t)&((NetState*)0)->vio)
#define STATE_FROM_VIO(_x)   ((NetState*)(((char*)(_x)) - STATE_VIO_OFFSET))
#define disable_read(_vc)   (_vc)->read.enabled = 0
#define disable_write(_vc)   (_vc)->write.enabled = 0
#define enable_read(_vc)   (_vc)->read.enabled = 1
#define enable_write(_vc)   (_vc)->write.enabled = 1
#define NET_MAX_IOV   16

Functions

static void read_reschedule (NetHandler *nh, UnixNetVConnection *vc)
static void write_reschedule (NetHandler *nh, UnixNetVConnection *vc)
void net_activity (UnixNetVConnection *vc, EThread *thread)
void close_UnixNetVConnection (UnixNetVConnection *vc, EThread *t)
static int read_signal_and_update (int event, UnixNetVConnection *vc)
static int write_signal_and_update (int event, UnixNetVConnection *vc)
static int read_signal_done (int event, NetHandler *nh, UnixNetVConnection *vc)
static int write_signal_done (int event, NetHandler *nh, UnixNetVConnection *vc)
static int read_signal_error (NetHandler *nh, UnixNetVConnection *vc, int lerrno)
static int write_signal_error (NetHandler *nh, UnixNetVConnection *vc, int lerrno)
static void read_from_net (NetHandler *nh, UnixNetVConnection *vc, EThread *thread)
void write_to_net (NetHandler *nh, UnixNetVConnection *vc, EThread *thread)
void write_to_net_io (NetHandler *nh, UnixNetVConnection *vc, EThread *thread)

Variables

ClassAllocator
< UnixNetVConnection
netVCAllocator ("netVCAllocator")

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


Define Documentation

#define disable_read (   _vc  )     (_vc)->read.enabled = 0
#define disable_write (   _vc  )     (_vc)->write.enabled = 0
#define enable_read (   _vc  )     (_vc)->read.enabled = 1

Definition at line 31 of file UnixNetVConnection.cc.

#define enable_write (   _vc  )     (_vc)->write.enabled = 1

Definition at line 32 of file UnixNetVConnection.cc.

#define NET_MAX_IOV   16
#define STATE_FROM_VIO (   _x  )     ((NetState*)(((char*)(_x)) - STATE_VIO_OFFSET))
#define STATE_VIO_OFFSET   ((uintptr_t)&((NetState*)0)->vio)

Definition at line 26 of file UnixNetVConnection.cc.


Function Documentation

void close_UnixNetVConnection ( UnixNetVConnection vc,
EThread t 
)
void net_activity ( UnixNetVConnection vc,
EThread thread 
)
static void read_from_net ( NetHandler nh,
UnixNetVConnection vc,
EThread thread 
) [static]
static void read_reschedule ( NetHandler nh,
UnixNetVConnection vc 
) [inline, static]
static int read_signal_and_update ( int  event,
UnixNetVConnection vc 
) [inline, static]
static int read_signal_done ( int  event,
NetHandler nh,
UnixNetVConnection vc 
) [inline, static]
static int read_signal_error ( NetHandler nh,
UnixNetVConnection vc,
int  lerrno 
) [inline, static]
static void write_reschedule ( NetHandler nh,
UnixNetVConnection vc 
) [inline, static]
static int write_signal_and_update ( int  event,
UnixNetVConnection vc 
) [inline, static]
static int write_signal_done ( int  event,
NetHandler nh,
UnixNetVConnection vc 
) [inline, static]
static int write_signal_error ( NetHandler nh,
UnixNetVConnection vc,
int  lerrno 
) [inline, static]

Definition at line 195 of file UnixNetVConnection.cc.

References VConnection::lerrno, VC_EVENT_ERROR, and write_signal_done().

Referenced by write_to_net_io().

void write_to_net ( NetHandler nh,
UnixNetVConnection vc,
EThread thread 
)
void write_to_net_io ( NetHandler nh,
UnixNetVConnection vc,
EThread thread 
)

Variable Documentation