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.cpp
1
/*
2
* ServerConnectionState.cpp
3
*
4
* Created on: Sep 27, 2012
5
* Author: Mitchell Wills
6
*/
7
8
#include "networktables2/server/ServerConnectionState.h"
9
10
ServerConnectionState
ServerConnectionState::GOT_CONNECTION_FROM_CLIENT
(
"GOT_CONNECTION_FROM_CLIENT"
);
11
12
ServerConnectionState
ServerConnectionState::CONNECTED_TO_CLIENT
(
"CONNECTED_TO_CLIENT"
);
13
14
ServerConnectionState
ServerConnectionState::CLIENT_DISCONNECTED
(
"CLIENT_DISCONNECTED"
);
15
16
17
ServerConnectionState::ServerConnectionState(
const
char
* _name):name(_name){
18
}
19
const
char
* ServerConnectionState::toString(){
20
return
name;
21
}
22
23
ServerConnectionState_Error::ServerConnectionState_Error
(std::exception& _e):
ServerConnectionState
(
"SERVER_ERROR"
),e(_e){
24
}
25
const
char
* ServerConnectionState_Error::toString(){
26
return
"SERVER_ERROR"
;
27
//TODO return "SERVER_ERROR: "+e.getClass()+": "+e.what();
28
}
29
std::exception&
ServerConnectionState_Error::getException
(){
30
return
e;
31
}
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::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.