Go to the documentation of this file.
9 #ifndef CClientTCPSocket_H
10 #define CClientTCPSocket_H
22 class CServerTCPSocket;
44 #ifdef MRPT_OS_WINDOWS
47 # if MRPT_WORD_SIZE==64
87 const std::string &remotePartAddress,
88 unsigned short remotePartTCPPort,
89 unsigned int timeout_ms = 0 );
100 void sendString(
const std::string &str );
138 const int timeoutStart_ms = -1,
139 const int timeoutBetween_ms = -1);
152 const int timeout_ms = -1 );
161 const int timeout_ms = -1
172 const unsigned int timeoutStart_ms = 100,
173 const unsigned int timeoutBetween_ms = 1000
177 size_t getReadPendingBytes();
183 int setTCPNoDelay(
const int &newValue );
192 int setSOSendBufffer(
const int &newValue );
195 int getSOSendBufffer();
#define THROW_EXCEPTION(msg)
A TCP socket that can be wait for client connections to enter.
std::string BASE_IMPEXP getLastSocketErrorStr()
Returns a description of the last Sockets error.
uint64_t getPosition() MRPT_OVERRIDE
This virtual method has no effect in this implementation over a TCP socket, and its use raises an exc...
std::string getLastErrorStr()
Returns a description of the last Sockets error.
std::string m_remotePartIP
The IP address of the remote part of the connection.
uint64_t Seek(uint64_t Offset, CStream::TSeekOrigin Origin=sFromBeginning) MRPT_OVERRIDE
This virtual method has no effect in this implementation over a TCP socket, and its use raises an exc...
A TCP socket that can be connected to a TCP server, implementing MRPT's CStream interface for passing...
#define MRPT_UNUSED_PARAM(a)
Can be used to avoid "not used parameters" warnings from the compiler.
unsigned short m_remotePartPort
The TCP port of the remote part of the connection.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
This base class is used to provide a unified interface to files,memory buffers,..Please see the deriv...
A class that contain generic messages, that can be sent and received from a "CClientTCPSocket" object...
int m_hSock
The handle for the connected TCP socket, or -1.
TSeekOrigin
Used in CStream::Seek.
uint64_t getTotalBytesCount() MRPT_OVERRIDE
This virtual method has no effect in this implementation over a TCP socket, and its use raises an exc...
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
static unsigned int DNS_LOOKUP_TIMEOUT_MS
See description of CClientTCPSocket.
Page generated by Doxygen 1.8.17 for MRPT 1.4.0 SVN: at Sat Jan 18 22:37:07 UTC 2020 | | |