~ps10gel/ubuntu/xenial/trafficserver/6.2.0

« back to all changes in this revision

Viewing changes to iocore/net/I_UDPConnection.h

  • Committer: Package Import Robot
  • Author(s): Aron Xu
  • Date: 2013-05-09 01:00:04 UTC
  • mto: (1.1.11) (5.3.3 experimental)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: package-import@ubuntu.com-20130509010004-9fqq9n0adseg3f8w
Tags: upstream-3.3.2
ImportĀ upstreamĀ versionĀ 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
 
56
56
  void destroy();
57
57
  int shouldDestroy();
58
 
  /* Returns the b/w allocated to this UDP connection in Mbps */
59
 
  double get_allocatedBandwidth();
60
58
  /**
61
59
     <p>
62
60
     <b>Callbacks:</b><br>
97
95
  /**
98
96
     Put socket on net queue for read/write polling.
99
97
 
100
 
     Not required for UDPConnections created with
101
 
     UDPNetProcessor::UDPBind
 
98
     Not required for UDPConnections created with UDPNetProcessor::UDPBind
102
99
 
103
 
     Required for UDPNetProcessor::UDPCreatePortPairs  and
104
 
     UDPNetProcessor::CreateUDPSocket.  They  don't do bindToThread()
105
 
     automatically so that the sockets can be passed to other Continuations.
 
100
     Required for  and UDPNetProcessor::CreateUDPSocket.  They  don't do
 
101
     bindToThread() automatically so that the sockets can be passed to
 
102
     other Continuations.
106
103
  */
107
104
  void bindToThread(Continuation * c);
108
105
 
109
106
  virtual void UDPConnection_is_abstract() = 0;
110
107
};
111
108
 
112
 
TS_INLINE UDPConnection *new_UDPConnection(int fd);
 
109
extern UDPConnection *new_UDPConnection(int fd);
113
110
#endif //__I_UDPCONNECTION_H_