Go to the documentation of this file.    1 #ifndef URG_TCPCLIENT_H 
    2 #define URG_TCPCLIENT_H 
   19 #include <sys/types.h> 
   20 #if defined(URG_WINDOWS_OS) 
   23 #include <sys/socket.h> 
   24 #include <netinet/in.h> 
   25 #include <arpa/inet.h> 
   46     struct sockaddr_in server_addr;
 
   73                           const char* server_ip_str, 
int port_num);
 
   95                           char* userbuf, 
int req_size, 
int timeout);
 
  108                            const char* userbuf, 
int req_size);
 
  113                            char* error_message, 
int max_size);
 
  127                               char* userbuf, 
int buf_size, 
int timeout);
 
 
void tcpclient_close(urg_tcpclient_t *cli)
destructor of tcp client module
int tcpclient_read(urg_tcpclient_t *cli, char *userbuf, int req_size, int timeout)
read from socket.
int tcpclient_error(urg_tcpclient_t *cli, char *error_message, int max_size)
int tcpclient_open(urg_tcpclient_t *cli, const char *server_ip_str, int port_num)
constructor of tcp client module
int tcpclient_readline(urg_tcpclient_t *cli, char *userbuf, int buf_size, int timeout)
read one line from socket.
int tcpclient_write(urg_tcpclient_t *cli, const char *userbuf, int req_size)
write to socket.
urg_c
Author(s): Satofumi Kamimura 
, Katsumi Kimoto, Adrian Boeing
autogenerated on Wed Mar 2 2022 01:08:11