Advanced Robot Control System  5.1-REV.51SF170515
ARCS::UDPReceiver クラス

#include <UDPReceiver.hh>

公開型

enum  VarType {
  UDP_INT16_T, UDP_INT32_T, UDP_UINT16_T, UDP_UINT32_T,
  UDP_DOUBLE
}
 

公開メンバ関数

 UDPReceiver (const unsigned short PortNum, VarType TypeOfVar, unsigned int NumOfVar)
 
 UDPReceiver (const char *IPaddress, const unsigned short PortNum, VarType TypeOfVar, unsigned int NumOfVar)
 
 ~UDPReceiver ()
 
volatile bool GetReceiveFlag (void)
 
volatile bool ReBind (void)
 
unsigned int Receive (int16_t *Data)
 
unsigned int Receive (int32_t *Data)
 
unsigned int Receive (uint16_t *Data)
 
unsigned int Receive (uint32_t *Data)
 
unsigned int Receive (double *Data)
 

非公開メンバ関数

 UDPReceiver (const UDPReceiver &)
 
const UDPReceiveroperator= (const UDPReceiver &)
 

静的非公開メンバ関数

static void ReceiveThread (UDPReceiver *p)
 
static size_t CalcRecvBytes (VarType TypeOfVar, unsigned int NumOfVar)
 

非公開変数類

int sock
 
struct sockaddr_in addr
 
VarType VariableType
 
unsigned int VarNum
 
char * RecvData
 
size_t RecvBytes
 
ssize_t ActRecvBytes
 
pthread_t ThreadID
 
volatile bool ReceiveFlag
 

静的非公開変数類

static const unsigned int TimeToReBind = 100000
 

列挙型メンバ詳解

§ VarType

列挙値
UDP_INT16_T 
UDP_INT32_T 
UDP_UINT16_T 
UDP_UINT32_T 
UDP_DOUBLE 

構築子と解体子

§ UDPReceiver() [1/3]

UDPReceiver::UDPReceiver ( const unsigned short  PortNum,
VarType  TypeOfVar,
unsigned int  NumOfVar 
)
呼び出し関係図:

§ UDPReceiver() [2/3]

UDPReceiver::UDPReceiver ( const char *  IPaddress,
const unsigned short  PortNum,
VarType  TypeOfVar,
unsigned int  NumOfVar 
)
呼び出し関係図:

§ ~UDPReceiver()

UDPReceiver::~UDPReceiver ( )

§ UDPReceiver() [3/3]

ARCS::UDPReceiver::UDPReceiver ( const UDPReceiver )
private

関数詳解

§ CalcRecvBytes()

size_t UDPReceiver::CalcRecvBytes ( VarType  TypeOfVar,
unsigned int  NumOfVar 
)
staticprivate
被呼び出し関係図:

§ GetReceiveFlag()

volatile bool UDPReceiver::GetReceiveFlag ( void  )

§ operator=()

const UDPReceiver& ARCS::UDPReceiver::operator= ( const UDPReceiver )
private

§ ReBind()

volatile bool UDPReceiver::ReBind ( void  )

§ Receive() [1/5]

unsigned int UDPReceiver::Receive ( int16_t *  Data)

§ Receive() [2/5]

unsigned int UDPReceiver::Receive ( int32_t *  Data)

§ Receive() [3/5]

unsigned int UDPReceiver::Receive ( uint16_t *  Data)

§ Receive() [4/5]

unsigned int UDPReceiver::Receive ( uint32_t *  Data)

§ Receive() [5/5]

unsigned int UDPReceiver::Receive ( double *  Data)

§ ReceiveThread()

void UDPReceiver::ReceiveThread ( UDPReceiver p)
staticprivate
被呼び出し関係図:

メンバ詳解

§ ActRecvBytes

ssize_t ARCS::UDPReceiver::ActRecvBytes
private

§ addr

struct sockaddr_in ARCS::UDPReceiver::addr
private

§ ReceiveFlag

volatile bool ARCS::UDPReceiver::ReceiveFlag
private

§ RecvBytes

size_t ARCS::UDPReceiver::RecvBytes
private

§ RecvData

char* ARCS::UDPReceiver::RecvData
private

§ sock

int ARCS::UDPReceiver::sock
private

§ ThreadID

pthread_t ARCS::UDPReceiver::ThreadID
private

§ TimeToReBind

const unsigned int ARCS::UDPReceiver::TimeToReBind = 100000
staticprivate

§ VariableType

VarType ARCS::UDPReceiver::VariableType
private

§ VarNum

unsigned int ARCS::UDPReceiver::VarNum
private

このクラス詳解は次のファイルから抽出されました: