Home
Roadside
Carputer
geoHist
software
FRC
Blog
Now you can download a copy of these docs so you can use them offline!
Download now
Main Page
Related Pages
Classes
Files
File List
networktables2
server
ServerConnectionState.h
1
/*
2
* ServerConnectionState.h
3
*
4
* Created on: Sep 26, 2012
5
* Author: Mitchell Wills
6
*/
7
8
#ifndef SERVERCONNECTIONSTATE_H_
9
#define SERVERCONNECTIONSTATE_H_
10
11
class
ServerConnectionState
;
12
class
ServerConnectionState_Error
;
13
14
#include <exception>
15
16
17
24
class
ServerConnectionState
25
{
26
public
:
30
static
ServerConnectionState
GOT_CONNECTION_FROM_CLIENT
;
34
static
ServerConnectionState
CONNECTED_TO_CLIENT
;
38
static
ServerConnectionState
CLIENT_DISCONNECTED
;
39
40
private
:
41
const
char
* name;
42
protected
:
43
ServerConnectionState
(
const
char
* name);
44
public
:
45
virtual
const
char
* toString();
46
virtual
~
ServerConnectionState
()
47
{
48
}
49
};
50
57
class
ServerConnectionState_Error
:
public
ServerConnectionState
58
{
59
private
:
60
std::exception& e;
61
public
:
66
ServerConnectionState_Error
(std::exception& e);
67
68
virtual
const
char
* toString();
72
std::exception&
getException
();
73
};
74
75
#endif
/* SERVERCONNECTIONSTATE_H_ */
ServerConnectionState::GOT_CONNECTION_FROM_CLIENT
static ServerConnectionState GOT_CONNECTION_FROM_CLIENT
Definition:
ServerConnectionState.h:30
ServerConnectionState_Error::ServerConnectionState_Error
ServerConnectionState_Error(std::exception &e)
Definition:
ServerConnectionState.cpp:23
ServerConnectionState
Definition:
ServerConnectionState.h:24
ServerConnectionState_Error::getException
std::exception & getException()
Definition:
ServerConnectionState.cpp:29
ServerConnectionState_Error
Definition:
ServerConnectionState.h:57
ServerConnectionState::CLIENT_DISCONNECTED
static ServerConnectionState CLIENT_DISCONNECTED
Definition:
ServerConnectionState.h:38
ServerConnectionState::CONNECTED_TO_CLIENT
static ServerConnectionState CONNECTED_TO_CLIENT
Definition:
ServerConnectionState.h:34
Generated on Sat Apr 26 2014 12:26:45 for WPILibC++ by
1.8.6
© 2006-2009 Dustin Spicuzza. All rights reserved.
Powered by Onnac
I do not condone or encourage graffiti. Please paint responsibly.