#include <mrpt/comms/CServerTCPSocket.h>
#include <mrpt/comms/CClientTCPSocket.h>
#include <mrpt/serialization/CMessage.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 143 of file SocketsTest_impl.cpp.
References thread_client(), and thread_server().
Referenced by TEST().
void thread_client | ( | ) |
Definition at line 75 of file SocketsTest_impl.cpp.
References mrpt::poses::CPose3D::asString(), mrpt::comms::CClientTCPSocket::connect(), mrpt::serialization::CMessage::content, mrpt::serialization::CMessage::deserializeIntoExistingObject(), p_tx, mrpt::comms::CClientTCPSocket::receiveMessage(), sockets_test_passed_ok, and mrpt::serialization::CMessage::type.
Referenced by SocketsTest().
void thread_server | ( | ) |
Definition at line 25 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 19 of file SocketsTest_impl.cpp.
Referenced by TEST(), and thread_client().
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST |