Version: 0.6.0
net.h
1 /******************************************************************************
2  * Project: wxGIS (GIS Remote)
3  * Purpose: wxGIS Networking header. Network classes for remote server
4  * Author: Dmitry Baryshnikov (aka Bishop), polimax@mail.ru
5  ******************************************************************************
6 * Copyright (C) 2008-2013 Dmitry Baryshnikov
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  ****************************************************************************/
21 #pragma once
22 
23 #include "wxgis/core/core.h"
24 
25 #include "wx/socket.h"
26 
27 #if wxUSE_IPV6
28  typedef wxIPV6address IPaddress;
29 #else
30  typedef wxIPV4address IPaddress;
31 #endif
32 
36 enum wxGISMessagePriority
37 {
38  enumGISPriorityLowest = 0,
39  enumGISPriorityLow = 25,
40  enumGISPriorityNormal = 50,
41  enumGISPriorityHigh = 75,
42  enumGISPriorityHighest = 100
43 };
44 
50 enum wxGISNetCommand
51 {
52  enumGISNetCmdUnk = 0,
53  enumGISNetCmdHello,
54  enumGISNetCmdCmd,
55  enumGISNetCmdNote,
56  enumGISNetCmdBye,
57  enumGISNetCmdSetExitSt
58 };
59 
65 enum wxGISNetCommandState
66 {
67  enumGISNetCmdStUnk = 0,
68  //status
69  enumGISNetCmdStOk,
70  enumGISNetCmdStErr,
71  enumGISNetCmdStTimeout,
72  enumGISNetCmdStAccept,
73  enumGISNetCmdStRefuse,
74  //command
75  enumGISCmdChildren,
76  enumGISCmdDetails,
77  enumGISCmdStAdd,
78  enumGISCmdStDel,
79  enumGISCmdStChng,
80  enumGISCmdSetParam,
81  enumGISCmdGetParam,
82  //exit state
83  enumGISNetCmdStExit,
84  enumGISNetCmdStNoExit,
85  enumGISNetCmdStExitAfterExec,
86  //task
87  enumGISCmdStStart,
88  enumGISCmdStStop,
89  enumGISCmdStPriority,
90  enumGISCmdNoteMsg,
91  //enumGISCmdNoteVol, /**< The indicator for enumGISNetCmdNote net notification - Task volume changed*/
92  //enumGISCmdNotePercent, /**< The indicator for enumGISNetCmdNote net notification - Task percent changed*/
93  //other
94  enumGISNetCmdStAuth
95  /*/notifications
96  ,
97  enumGISMsgStSnd,
98  enumGISMsgStRcv*/
99 };
100