sipxmedialib  Version 3.3
INetworkSource.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2006 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 
11 // Border Guard
12 #ifndef _INetworkSource_h
13 #define _INetworkSource_h
14 
15 #include "rtcp/RtcpConfig.h"
16 
17 // Includes
18 #include "IBaseClass.h"
19 #include "INetworkChannel.h"
20 
34 interface INetworkSource : public INetworkChannel
35  {
36 
37 // Public Methods
38 
39 public:
40 
41 /*|><|************************************************************************
42  Name: CNetworkChannel::Receive
43 
44  Description: A polymorphic method of IChannel that processes any receive
45  events associated with a channel. This version of receive
46  shall handle inbound data on either a connectionless or
47  connection-oriented channel. Arriving data shall be
48  dispatched to a Processing routine while various errors or
49  channel conditions shall be reported and returned as errors.
50 
51  Returns: int.
52  ***********************************************************************|><|*/
53  virtual int Receive(unsigned char *puchBuffer,
54  unsigned long ulBufferSize)=0;
55 
56 /*|><|************************************************************************
57  Name: Dispatch
58 
59  Description: A method that takes a data transmission forwarded by the
60  Receive() method and routes it to the appopriate receiver.
61 
62  Returns: void.
63  ***********************************************************************|><|*/
64  virtual void Dispatch(unsigned char * puchBuffer,
65  unsigned long ulBytesRecvd)=0;
66 
67 
68 };
69 
70 
71 #endif
interface unsigned long ulBufferSize
Definition: INetworkSource.h:54
virtual void Dispatch(unsigned char *puchBuffer, unsigned long ulBytesRecvd)=0