MRPT  2.0.4
Functions | Variables
SocketsTest_impl.cpp File Reference
#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>
Include dependency graph for SocketsTest_impl.cpp:
This graph shows which files directly or indirectly include this file:

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)
 

Function Documentation

◆ SocketsTest()

void SocketsTest ( )

Definition at line 146 of file SocketsTest_impl.cpp.

References thread_client(), and thread_server().

Referenced by TEST().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ thread_client()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ thread_server()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ p_tx

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().

◆ sockets_test_passed_ok

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 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020