Public Member Functions | Public Attributes | Private Attributes | List of all members
SocketPort Class Reference

#include <socket.h>

Public Member Functions

void close_port (void)
 
void flush (void)
 
int is_ok (void)
 
int read_frame (unsigned char *data)
 
void recv_proc (void)
 
 SocketPort (char *server_ip, int server_port, int que_num, int que_maxlen)
 
int write_frame (unsigned char *data, int len)
 
 ~SocketPort (void)
 

Public Attributes

int que_maxlen_
 

Private Attributes

int fp_
 
int port_
 
int que_num_
 
QueueMemcpyrx_que_
 
int state_
 

Detailed Description

Definition at line 15 of file socket.h.

Constructor & Destructor Documentation

SocketPort::SocketPort ( char *  server_ip,
int  server_port,
int  que_num,
int  que_maxlen 
)

Definition at line 89 of file socket.cc.

SocketPort::~SocketPort ( void  )

Definition at line 113 of file socket.cc.

Member Function Documentation

void SocketPort::close_port ( void  )

Definition at line 136 of file socket.cc.

void SocketPort::flush ( void  )

Definition at line 120 of file socket.cc.

int SocketPort::is_ok ( void  )

Definition at line 118 of file socket.cc.

int SocketPort::read_frame ( unsigned char *  data)

Definition at line 122 of file socket.cc.

void SocketPort::recv_proc ( void  )

Definition at line 45 of file socket.cc.

int SocketPort::write_frame ( unsigned char *  data,
int  len 
)

Definition at line 131 of file socket.cc.

Member Data Documentation

int SocketPort::fp_
private

Definition at line 29 of file socket.h.

int SocketPort::port_
private

Definition at line 28 of file socket.h.

int SocketPort::que_maxlen_

Definition at line 25 of file socket.h.

int SocketPort::que_num_
private

Definition at line 31 of file socket.h.

QueueMemcpy* SocketPort::rx_que_
private

Definition at line 32 of file socket.h.

int SocketPort::state_
private

Definition at line 30 of file socket.h.


The documentation for this class was generated from the following files:


xarm_api
Author(s):
autogenerated on Sat May 8 2021 02:51:23