Basic Image AlgorithmS Library
2.8.0
|
UDP server class. More...
#include <NetworkComm/UDPServer.hh>
Public Member Functions | |
void | AddDebugLevel (const long int lv) |
void | AddDebugLevel (const std::string &name) |
int | Connect (const char *ipaddress_or_name, int port, bool UseTCP=false) |
open a UDP socket to the given host:port More... | |
int | Connect (int port, bool UseTCP=false) |
open a UDP socket to the given port More... | |
bool | DebugLevelIsSet (const long int lv) const |
bool | DebugLevelIsSet (const std::string &name) const |
int | Disconnect () |
int | GetDebugLevel () const |
std::ostream & | GetDebugStream () const |
void | GetDebugStream (std::ostream &os) const |
unsigned int | GetMessageSize () |
long int | Name2DebugLevel (const std::string &name) const |
looks up a debuglevel in the internal map, returns 0 if not found More... | |
long int | NewDebugLevel (const std::string &name) |
creates a new debuglevel More... | |
void | PrintDebugLevel (std::ostream &os=std::cout) const |
void | RemoveDebugLevel (const long int lv) |
void | RemoveDebugLevel (const std::string &name) |
int | Send (const char *message, const size_t message_size) |
Send a message. More... | |
int | SendToUDP (const char *message, const size_t message_size, const char *ipAddress, int port) |
Send a message to a given host:port (UDP only) More... | |
void | SetDebugLevel (const long int lv) |
void | SetDebugLevel (const std::string &name) |
void | SetDebugStream (const std::ostream &os) |
void | SetThrottle (const unsigned int t) |
void | ShowDebugLevel (std::ostream &os=std::cout) const |
prints all internally known debuglevels More... | |
UDPServer () | |
Constructor,. More... | |
~UDPServer () | |
Destructor. More... | |
Static Public Member Functions | |
static long int | GetGlobalDebugLevel () |
static void | SetGlobalDebugLevel (long int lev) |
Protected Member Functions | |
long | ConsumeNextFreeDebuglevel_ () |
returns the next available debuglevel More... | |
Protected Attributes | |
long int | _liDebugLevel |
long int | _liNextDebugLevel |
new concept, debuglevel are managed here in the debug class More... | |
std::map< std::string, long int > | _String2Debuglevel |
char * | ImgBuffer_ |
unsigned int | ImgBufferSize_ |
int | message_counter_ |
unsigned int | MessageSize_ |
char * | send_buffer_ |
int | socket_descriptor_ |
bool | TCPinsteadOfUDP_ |
struct sockaddr | TCPSockAddr_ |
unsigned int | Throttle_ |
struct sockaddr_in | UDPSockAddr_ |
Static Protected Attributes | |
static std::ostream | _zDebugStream |
static long int | GlobalDebugLevel = 0 |
UDP server class.
Definition at line 27 of file UDPServer.hh.
UDPServer::UDPServer | ( | ) |
UDPServer::~UDPServer | ( | ) |
Destructor.
Definition at line 41 of file UDPServer.cc.
|
inlineinherited |
Definition at line 355 of file Debug.hh.
Referenced by BIAS::GLProjectionParametersBase::AddDebugLevel(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::FilterBase< InputStorageType, OutputStorageType >::FilterBase(), BIAS::ShowCamWxVideoSourceFactory::OpenDevice(), and BIAS::SceneOpenSceneGraph::SceneOpenSceneGraph().
|
inlineinherited |
int UDPServer::Connect | ( | const char * | ipaddress_or_name, |
int | port, | ||
bool | UseTCP = false |
||
) |
open a UDP socket to the given host:port
Definition at line 249 of file UDPServer.cc.
int UDPServer::Connect | ( | int | port, |
bool | UseTCP = false |
||
) |
open a UDP socket to the given port
Definition at line 324 of file UDPServer.cc.
|
inlineprotectedinherited |
|
inlineinherited |
Definition at line 341 of file Debug.hh.
Referenced by BIAS::GenSynthMatches::_AddUniformDistributedOutliers(), BIAS::GenSynthMatches::_CreateCamMovement(), BIAS::GenSynthMatches::_CreateStatic2DPoints(), BIAS::UnscentedTransform::ComputeSigmaPoints_(), BIAS::Triangulation::CorrectCorrespondences(), BIAS::GenSynthMatches::GetGTNormalizedF(), BIAS::MonteCarloTransform::GetSamples_(), and BIAS::MonteCarloTransform::Transform().
|
inlineinherited |
int UDPServer::Disconnect | ( | ) |
Definition at line 369 of file UDPServer.cc.
|
inlineinherited |
Definition at line 332 of file Debug.hh.
Referenced by BIAS::listenthread(), BIAS::Image< StorageType >::operator=(), and BIAS::ImageBase::operator=().
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
|
inline |
Definition at line 77 of file UDPServer.hh.
|
inlineinherited |
|
inlineinherited |
creates a new debuglevel
Definition at line 474 of file Debug.hh.
Referenced by BIAS::COSAC< SolutionType >::COSAC(), BIAS::ProjectionParametersPerspectiveDepth::Init(), BIAS::MonteCarloTransform::MonteCarloTransform(), BIAS::PMatrixEstimation::PMatrixEstimation(), BIAS::PreemptiveRANSAC< SolutionType >::PreemptiveRANSAC(), BIAS::RANSACPreKnowledge< SolutionType >::RANSACPreKnowledge(), BIAS::ROI::ROI(), BIAS::RotationAveraging::RotationAveraging(), BIAS::SceneOpenSceneGraph::SceneOpenSceneGraph(), BIAS::ThreeDOutOpenSceneGraph::ThreeDOutOpenSceneGraph(), BIAS::Triangulation::Triangulation(), and BIAS::UnscentedTransform::UnscentedTransform().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
int UDPServer::Send | ( | const char * | message, |
const size_t | message_size | ||
) |
Send a message.
message | A char pointer to the beginning of the message |
message_size | The Size of the message |
Definition at line 47 of file UDPServer.cc.
References BIAS::maxMessageNumber, BIAS::message_frame_header::message_frame_number, BIAS::message_frame_header::message_frames_total, BIAS::message_frame_header::message_number, and BIAS::UDP_PACKAGE_SIZE.
int UDPServer::SendToUDP | ( | const char * | message, |
const size_t | message_size, | ||
const char * | ipAddress, | ||
int | port | ||
) |
Send a message to a given host:port (UDP only)
message | A char pointer to the beginning of the message |
message_size | The size of the message |
ipAddress | The host ip address |
port | The host port |
Definition at line 143 of file UDPServer.cc.
References BIAS::maxMessageNumber, BIAS::message_frame_header::message_frame_number, BIAS::message_frame_header::message_frames_total, BIAS::message_frame_header::message_number, and BIAS::UDP_PACKAGE_SIZE.
|
inlineinherited |
Definition at line 318 of file Debug.hh.
Referenced by BIAS::ShowCamWxVideoSourceFactory::CreateBumbleBee(), BIAS::ShowCamWxVideoSourceFactory::CreateDCAM(), BIAS::VideoSource_MDcam::ScanBus(), BIAS::GLProjectionParametersBase::SetDebugLevel(), BIAS::VideoSource_Disk::VideoSource_Disk(), BIAS::VideoSource_DV2::VideoSource_DV2(), BIAS::VideoSource_DV::VideoSource_DV_Internal_Init_(), and BIAS::VideoSource_V4L::VideoSource_V4L().
|
inlineinherited |
|
inlineinherited |
|
inlinestaticinherited |
|
inline |
Definition at line 76 of file UDPServer.hh.
|
inlineinherited |
|
protectedinherited |
Definition at line 510 of file Debug.hh.
Referenced by BIAS::Debug::operator=(), and BIAS::ImageBase::operator=().
|
protectedinherited |
new concept, debuglevel are managed here in the debug class
Definition at line 516 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
protectedinherited |
Definition at line 517 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
staticprotectedinherited |
Definition at line 511 of file Debug.hh.
Referenced by BIAS::Debug::operator=().
|
staticprotectedinherited |
|
protected |
Definition at line 103 of file UDPServer.hh.
|
protected |
Definition at line 105 of file UDPServer.hh.
|
protected |
Definition at line 92 of file UDPServer.hh.
|
protected |
Definition at line 98 of file UDPServer.hh.
|
protected |
Definition at line 88 of file UDPServer.hh.
|
protected |
Definition at line 85 of file UDPServer.hh.
|
protected |
Definition at line 100 of file UDPServer.hh.
|
protected |
Definition at line 83 of file UDPServer.hh.
|
protected |
Definition at line 96 of file UDPServer.hh.
|
protected |
Definition at line 82 of file UDPServer.hh.