MRPT
1.9.9
|
#include <mrpt/comms/CServerTCPSocket.h>
#include <mrpt/comms/CClientTCPSocket.h>
#include <mrpt/serialization/CMessage.h>
#include <mrpt/system/scheduler.h>
#include <mrpt/poses/CPose3D.h>
#include <cstdio>
#include <thread>
#include <chrono>
#include <iostream>
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 76 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(), 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 26 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: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020 |