• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* ------------------------------------------------------------------
2  * Copyright (C) 1998-2009 PacketVideo
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13  * express or implied.
14  * See the License for the specific language governing permissions
15  * and limitations under the License.
16  * -------------------------------------------------------------------
17  */
18 #ifndef PVMF_SOCKET_NODE_EVENTS_H_INCLUDED
19 #define PVMF_SOCKET_NODE_EVENTS_H_INCLUDED
20 
21 #define PVMFSocketNodeEventTypeUUID PVUuid(0xbe846567,0xae17,0x44c8,0x9c,0x9a,0x87,0xb8,0x33,0xa0,0xf9,0x1d)
22 
23 /* Debug macros*/
24 #define ENABLE_SOCKET_NODE_DEBUG_INFO_EVENT 0
25 
26 /**
27  * An enumeration of error codes from PVMFSocketNode
28  **/
29 typedef enum
30 {
31     PVMFSocketNodeErrorEventStart = 1024,
32     PVMFSocketNodeErrorSocketServerCreateError,
33     PVMFSocketNodeErrorSocketServConnectError,
34     PVMFSocketNodeErrorUDPSocketRecvError,
35     PVMFSocketNodeErrorTCPSocketRecvError,
36     PVMFSocketNodeErrorUDPSocketSendError,
37     PVMFSocketNodeErrorTCPSocketSendError,
38     PVMFSocketNodeError_TCPSocketConnect,
39     PVMFSocketNodeError_DNSLookup,
40     PVMFSocketNodeErrorSocketFailure,
41     PVMFSocketNodeErrorSocketTimeOut,
42     PVMFSocketNodeErrorInvalidPortTag,
43     PVMFSocketNodeErrorInvalidPortConfig,
44     PVMFSocketNodeErrorConnectCancelled,
45     PVMFSocketNodeErrorDNSCancelled,
46     PVMFSocketNodeErrorEventEnd
47 } PVMFSocketNodeErrorEventType;
48 
49 /**
50  * An enumeration of info codes from PVMFSocketNode
51  **/
52 typedef enum
53 {
54     PVMFSocketNodeInfoEventStart = 8192,
55     PVMFSocketNodeInfoEventPacketTruncated,
56 
57     PVMFSocketNodeInfoEventRequestedDNSResolution,
58     PVMFSocketNodeInfoEventConnectRequestPending,
59 
60     PVMFSocketNodeInfoEventEnd
61 } PVMFSocketNodeInfoEventType;
62 
63 #endif //PVMF_SOCKET_NODE_EVENTS_H_INCLUDED
64 
65 
66