~ps10gel/ubuntu/xenial/trafficserver/6.2.0

« back to all changes in this revision

Viewing changes to iocore/net/P_UnixNetState.h

  • Committer: Bazaar Package Importer
  • Author(s): Arno Toell
  • Date: 2011-01-13 11:49:18 UTC
  • Revision ID: james.westby@ubuntu.com-20110113114918-vu422h8dknrgkj15
Tags: upstream-2.1.5-unstable
ImportĀ upstreamĀ versionĀ 2.1.5-unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/** @file
 
2
 
 
3
  A brief file description
 
4
 
 
5
  @section license License
 
6
 
 
7
  Licensed to the Apache Software Foundation (ASF) under one
 
8
  or more contributor license agreements.  See the NOTICE file
 
9
  distributed with this work for additional information
 
10
  regarding copyright ownership.  The ASF licenses this file
 
11
  to you under the Apache License, Version 2.0 (the
 
12
  "License"); you may not use this file except in compliance
 
13
  with the License.  You may obtain a copy of the License at
 
14
 
 
15
      http://www.apache.org/licenses/LICENSE-2.0
 
16
 
 
17
  Unless required by applicable law or agreed to in writing, software
 
18
  distributed under the License is distributed on an "AS IS" BASIS,
 
19
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
20
  See the License for the specific language governing permissions and
 
21
  limitations under the License.
 
22
 */
 
23
 
 
24
/****************************************************************************
 
25
 
 
26
  UnixNetState.h
 
27
 
 
28
 
 
29
   NetState
 
30
 
 
31
   State information for a particular channel of a NetVConnection
 
32
   This information is private to the Net module.   It is only here
 
33
   because of the the C++ compiler needs it to define NetVConnection.
 
34
 
 
35
   Shared with Cluster.cc
 
36
 
 
37
 
 
38
 
 
39
 ****************************************************************************/
 
40
#if !defined (_UnixNetState_h_)
 
41
#define _UnixNetState_h_
 
42
 
 
43
#include "List.h"
 
44
#include "I_VIO.h"
 
45
 
 
46
class Event;
 
47
class UnixNetVConnection;
 
48
 
 
49
struct NetState
 
50
{
 
51
  volatile int enabled;
 
52
  VIO vio;
 
53
  Link<UnixNetVConnection> ready_link;
 
54
  SLink<UnixNetVConnection> enable_link;
 
55
  int in_enabled_list;
 
56
  int triggered;
 
57
 
 
58
  NetState() : enabled(0), vio(VIO::NONE), in_enabled_list(0), triggered(0) {}
 
59
};
 
60
 
 
61
#endif