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

#include <UDPTransmitter.hh>

公開型

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

公開メンバ関数

 UDPTransmitter (const char *IPaddress, const unsigned short PortNum, VarType TypeOfVar, unsigned int NumOfVar)
 
 UDPTransmitter (const char *IPaddress_dept, const unsigned short PortNum_dept, const char *IPaddress_dest, const unsigned short PortNum_dest, VarType TypeOfVar, unsigned int NumOfVar)
 
 ~UDPTransmitter ()
 
void SetNumOfVar (unsigned int NumOfVar)
 
void Transmit (const char *Data, unsigned int Length)
 
volatile bool Transmit (int16_t *Data)
 
volatile bool Transmit (int32_t *Data)
 
volatile bool Transmit (uint16_t *Data)
 
volatile bool Transmit (uint32_t *Data)
 
volatile bool Transmit (double *Data)
 

非公開メンバ関数

 UDPTransmitter (const UDPTransmitter &)
 
const UDPTransmitteroperator= (const UDPTransmitter &)
 
volatile bool SendTo (void)
 

静的非公開メンバ関数

static size_t CalcTransBytes (VarType TypeOfVar, unsigned int NumOfVar)
 

非公開変数類

int sock
 
struct sockaddr_in addr_dest
 
struct sockaddr_in addr_dept
 
VarType VariableType
 
char * TransData
 
size_t TransBytes
 

列挙型メンバ詳解

§ VarType

列挙値
UDP_INT16_T 
UDP_INT32_T 
UDP_UINT16_T 
UDP_UINT32_T 
UDP_DOUBLE 

構築子と解体子

§ UDPTransmitter() [1/3]

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

§ UDPTransmitter() [2/3]

UDPTransmitter::UDPTransmitter ( const char *  IPaddress_dept,
const unsigned short  PortNum_dept,
const char *  IPaddress_dest,
const unsigned short  PortNum_dest,
VarType  TypeOfVar,
unsigned int  NumOfVar 
)
呼び出し関係図:

§ ~UDPTransmitter()

UDPTransmitter::~UDPTransmitter ( )

§ UDPTransmitter() [3/3]

ARCS::UDPTransmitter::UDPTransmitter ( const UDPTransmitter )
private

関数詳解

§ CalcTransBytes()

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

§ operator=()

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

§ SendTo()

volatile bool UDPTransmitter::SendTo ( void  )
private
被呼び出し関係図:

§ SetNumOfVar()

void UDPTransmitter::SetNumOfVar ( unsigned int  NumOfVar)
呼び出し関係図:

§ Transmit() [1/6]

void UDPTransmitter::Transmit ( const char *  Data,
unsigned int  Length 
)

§ Transmit() [2/6]

volatile bool UDPTransmitter::Transmit ( int16_t *  Data)
呼び出し関係図:

§ Transmit() [3/6]

volatile bool UDPTransmitter::Transmit ( int32_t *  Data)
呼び出し関係図:

§ Transmit() [4/6]

volatile bool UDPTransmitter::Transmit ( uint16_t *  Data)
呼び出し関係図:

§ Transmit() [5/6]

volatile bool UDPTransmitter::Transmit ( uint32_t *  Data)
呼び出し関係図:

§ Transmit() [6/6]

volatile bool UDPTransmitter::Transmit ( double *  Data)
呼び出し関係図:

メンバ詳解

§ addr_dept

struct sockaddr_in ARCS::UDPTransmitter::addr_dept
private

§ addr_dest

struct sockaddr_in ARCS::UDPTransmitter::addr_dest
private

§ sock

int ARCS::UDPTransmitter::sock
private

§ TransBytes

size_t ARCS::UDPTransmitter::TransBytes
private

§ TransData

char* ARCS::UDPTransmitter::TransData
private

§ VariableType

VarType ARCS::UDPTransmitter::VariableType
private

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