OpenNet
Status.h
Aller à la documentation de ce fichier.
1 
2 // Product OpenNet
3 
7 
8 #pragma once
9 
10 // Includes
12 
13 // ===== C ==================================================================
14 #include <stdio.h>
15 
16 // ===== Includes/OpenNet ===================================================
17 #include <OpenNet/OpenNet.h>
18 
19 namespace OpenNet
20 {
21 
22  // Data type
24 
33  typedef enum
34  {
35  STATUS_OK = 0,
36 
37  STATUS_ADAPTER_ALREADY_CONNECTED ,
38  STATUS_ADAPTER_ALREADY_SET ,
39  STATUS_ADAPTER_NOT_CONNECTED ,
40  STATUS_ADAPTER_NOT_SET ,
41  STATUS_ADAPTER_RUNNING ,
42  STATUS_BUFFER_ALLOCATED , // Not used
43  STATUS_BUFFER_TOO_SMALL ,
44  STATUS_CANNOT_OPEN_INPUT_FILE ,
45  STATUS_CANNOT_READ_INPUT_FILE ,
46  STATUS_CODE_ALREADY_SET , // 10
47  STATUS_CODE_NOT_SET ,
48  STATUS_CORRUPTED_DRIVER_DATA ,
49  STATUS_DESTINATION_ALREADY_SET ,
50  STATUS_DESTINATION_NOT_SET ,
51  STATUS_EMPTY_CODE ,
52  STATUS_EMPTY_INPUT_FILE ,
53  STATUS_ERROR_CLOSING_FILE ,
54  STATUS_ERROR_READING_INPUT_FILE ,
55  STATUS_EXCEPTION ,
56  STATUS_FILTER_ALREADY_SET , // 20
57  STATUS_FILTER_NOT_SET ,
58  STATUS_FILTER_SET ,
59  STATUS_INPUT_FILE_TOO_LARGE ,
60  STATUS_INTERNAL_ERROR ,
61  STATUS_INVALID_ADAPTER ,
62  STATUS_INVALID_ARGUMENT_COUNT ,
63  STATUS_INVALID_BANDWIDTH ,
64  STATUS_INVALID_BUFFER_COUNT ,
65  STATUS_INVALID_BUTTON_INDEX ,
66  STATUS_INVALID_COMMAND_INDEX , // 30
67  STATUS_INVALID_INDEX ,
68  STATUS_INVALID_LINK_SPEED ,
69  STATUS_INVALID_MODE ,
70  STATUS_INVALID_OFFSET ,
71  STATUS_INVALID_PACKET_SIZE ,
72  STATUS_INVALID_PAGE_INDEX ,
73  STATUS_INVALID_PROCESSOR ,
74  STATUS_INVALID_PROTOCOL ,
75  STATUS_INVALID_REFERENCE ,
76  STATUS_INVALID_SIZE , // 40
77  STATUS_IOCTL_ERROR ,
78  STATUS_NAME_TOO_LONG ,
79  STATUS_NAME_TOO_SHORT ,
80  STATUS_NO_ADAPTER_CONNECTED ,
81  STATUS_NO_BUFFER ,
82  STATUS_NO_DESTINATION_SET ,
83  STATUS_NOT_ADMINISTRATOR ,
84  STATUS_NOT_ALLOWED_NULL_ARGUMENT ,
85  STATUS_NOT_IMPLEMENTED ,
86  STATUS_OPEN_CL_ERROR , // 50
87  STATUS_PACKET_GENERATOR_RUNNING ,
88  STATUS_PACKET_GENERATOR_STOPPED ,
89  STATUS_PACKET_TOO_LARGE ,
90  STATUS_PACKET_TOO_SMALL ,
91  STATUS_PROCESSOR_ALREADY_SET ,
92  STATUS_PROCESSOR_NOT_SET ,
93  STATUS_PROFILING_ALREADY_DISABLED,
94  STATUS_PROFILING_ALREADY_ENABLED ,
95  STATUS_REBOOT_REQUIRED ,
96  STATUS_SAME_VALUE , // 60
97  STATUS_SYSTEM_ALREADY_STARTED ,
98  STATUS_SYSTEM_RUNNING ,
99  STATUS_SYSTEM_NOT_STARTED ,
100  STATUS_THREAD_CREATE_ERROR ,
101  STATUS_THREAD_CLOSE_ERROR ,
102  STATUS_THREAD_STOP_TIMEOUT ,
103  STATUS_THREAD_TERMINATE_ERROR ,
104  STATUS_TOO_MANY_BUFFER ,
105 
106  STATUS_QTY
107  }
108  Status;
109 
110  // Function
112 
122  extern OPEN_NET_PUBLIC const char * Status_GetDescription(Status aStatus);
123 
132  extern OPEN_NET_PUBLIC const char * Status_GetName(Status aStatus);
133 
146  extern OPEN_NET_PUBLIC Status Status_Display(Status aStatus, FILE * aOut);
147 
148 }
Definition: Adapter.h:19