#include <client_socket.h>
Public Member Functions | |
ClientSocket () | |
virtual bool | close (bool force_shutdown=false) |
virtual bool | connect (const std::string &server_address, int tcp_port) |
virtual socket_t & | socket (void) |
virtual | ~ClientSocket () |
Protected Attributes | |
socket_t | m_tcp_socket |
tcp client socket (int32 or SOCKET) More... | |
Class sick_scan_xd::ClientSocket encapsulates connecting, closing and setting socket options for tcp client sockets implemented by boost::asio::ip::tcp::socket.
Definition at line 68 of file client_socket.h.
sick_scan_xd::ClientSocket::ClientSocket | ( | ) |
Constructor.
Definition at line 66 of file client_socket.cpp.
|
virtual |
Destructor, closes all tcp connections.
Definition at line 73 of file client_socket.cpp.
|
virtual |
Closes the tcp connection to the server.
[in] | force_shutdown | if true, the socket is shutdown even if it's state is not opened or connected (otherwise the socket is closed, if its state is currently opened) |
Definition at line 158 of file client_socket.cpp.
|
virtual |
Connects to a server.
[in] | server_address | ip address of the localization controller, default: 192.168.0.1 |
[in] | tcp_port | tcp port for command requests, default: 2111 for command requests and 2112 for command responses |
Definition at line 84 of file client_socket.cpp.
|
inlinevirtual |
Returns the tcp client socket implementation
Definition at line 102 of file client_socket.h.
|
protected |
tcp client socket (int32 or SOCKET)
Definition at line 106 of file client_socket.h.