|
MRPT
1.9.9
|
#include <mrpt/comms/CClientTCPSocket.h>#include <mrpt/comms/CServerTCPSocket.h>#include <mrpt/poses/CPose3D.h>#include <mrpt/serialization/CMessage.h>#include <mrpt/system/scheduler.h>#include <chrono>#include <cstdio>#include <iostream>#include <thread>Go to the source code of this file.
Functions | |
| void | thread_server () |
| void | thread_client () |
| void | SocketsTest () |
Variables | |
| bool | sockets_test_passed_ok = false |
| const mrpt::poses::CPose3D | p_tx (1.0, 2.0, 3.0, 0.2, 0.4, 0.6) |
| void SocketsTest | ( | ) |
Definition at line 146 of file SocketsTest_impl.cpp.
References thread_client(), and thread_server().
Referenced by TEST().
| void thread_client | ( | ) |
Definition at line 77 of file SocketsTest_impl.cpp.
References mrpt::poses::CPose3D::asString(), mrpt::system::changeCurrentThreadPriority(), mrpt::comms::CClientTCPSocket::connect(), mrpt::serialization::CMessage::content, mrpt::serialization::CMessage::deserializeIntoExistingObject(), ok, p_tx, mrpt::comms::CClientTCPSocket::receiveMessage(), sockets_test_passed_ok, mrpt::system::tpLow, and mrpt::serialization::CMessage::type.
Referenced by SocketsTest().
| void thread_server | ( | ) |
Definition at line 27 of file SocketsTest_impl.cpp.
References mrpt::comms::CServerTCPSocket::accept(), mrpt::system::LVL_DEBUG, mrpt::system::LVL_ERROR, p_tx, mrpt::comms::CClientTCPSocket::sendMessage(), mrpt::serialization::CMessage::serializeObject(), SOCKET_TEST_VERBOSE, and mrpt::serialization::CMessage::type.
Referenced by SocketsTest().
| const mrpt::poses::CPose3D p_tx(1.0, 2.0, 3.0, 0.2, 0.4, 0.6) |
Referenced by thread_client(), and thread_server().
| bool sockets_test_passed_ok = false |
Definition at line 20 of file SocketsTest_impl.cpp.
Referenced by TEST(), and thread_client().
| Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: c7a3bec24 Sun Mar 29 18:33:13 2020 +0200 at dom mar 29 18:50:38 CEST 2020 |