YARP
Yet Another Robot Platform
yarp::os::impl::posix::TcpStream Class Reference

#include <yarp/os/impl/posix/TcpStream.h>

Public Member Functions

 TcpStream ()
 Constructor TcpStream. More...
 
virtual ~TcpStream ()
 Destructor ~TcpStream. More...
 
ssize_t recv_n (void *buf, size_t n)
 
ssize_t recv_n (void *buf, size_t n, struct timeval *tv)
 
ssize_t recv (void *buf, size_t n)
 
ssize_t recv (void *buf, size_t n, struct timeval *tv)
 
ssize_t send_n (const void *buf, size_t n)
 
ssize_t send_n (const void *buf, size_t n, struct timeval *tv)
 
void flush ()
 
void close_reader ()
 
void close_writer ()
 
void close ()
 
int open ()
 
int get_local_addr (sockaddr &)
 
int get_remote_addr (sockaddr &)
 
int get_handle ()
 
void set_handle (int h)
 
int set_option (int level, int option, void *optval, int optlen) const
 
int get_option (int level, int option, void *optval, int *optlen) const
 

Detailed Description

Definition at line 33 of file TcpStream.h.

Constructor & Destructor Documentation

◆ TcpStream()

TcpStream::TcpStream ( )
default

Constructor TcpStream.

◆ ~TcpStream()

TcpStream::~TcpStream ( )
virtualdefault

Destructor ~TcpStream.

Member Function Documentation

◆ close()

void yarp::os::impl::posix::TcpStream::close ( )
inline

Definition at line 96 of file TcpStream.h.

◆ close_reader()

void yarp::os::impl::posix::TcpStream::close_reader ( )
inline

Definition at line 82 of file TcpStream.h.

◆ close_writer()

void yarp::os::impl::posix::TcpStream::close_writer ( )
inline

Definition at line 89 of file TcpStream.h.

◆ flush()

void yarp::os::impl::posix::TcpStream::flush ( )
inline

Definition at line 80 of file TcpStream.h.

◆ get_handle()

int yarp::os::impl::posix::TcpStream::get_handle ( )
inline

Definition at line 111 of file TcpStream.h.

◆ get_local_addr()

int TcpStream::get_local_addr ( sockaddr &  sa)

Definition at line 45 of file TcpStream.cpp.

◆ get_option()

int yarp::os::impl::posix::TcpStream::get_option ( int  level,
int  option,
void *  optval,
int *  optlen 
) const
inline

Definition at line 123 of file TcpStream.h.

◆ get_remote_addr()

int TcpStream::get_remote_addr ( sockaddr &  sa)

Definition at line 54 of file TcpStream.cpp.

◆ open()

int TcpStream::open ( )

Definition at line 35 of file TcpStream.cpp.

◆ recv() [1/2]

ssize_t yarp::os::impl::posix::TcpStream::recv ( void *  buf,
size_t  n 
)
inline

Definition at line 57 of file TcpStream.h.

◆ recv() [2/2]

ssize_t yarp::os::impl::posix::TcpStream::recv ( void *  buf,
size_t  n,
struct timeval *  tv 
)
inline

Definition at line 62 of file TcpStream.h.

◆ recv_n() [1/2]

ssize_t yarp::os::impl::posix::TcpStream::recv_n ( void *  buf,
size_t  n 
)
inline

Definition at line 46 of file TcpStream.h.

◆ recv_n() [2/2]

ssize_t yarp::os::impl::posix::TcpStream::recv_n ( void *  buf,
size_t  n,
struct timeval *  tv 
)
inline

Definition at line 51 of file TcpStream.h.

◆ send_n() [1/2]

ssize_t yarp::os::impl::posix::TcpStream::send_n ( const void *  buf,
size_t  n 
)
inline

Definition at line 68 of file TcpStream.h.

◆ send_n() [2/2]

ssize_t yarp::os::impl::posix::TcpStream::send_n ( const void *  buf,
size_t  n,
struct timeval *  tv 
)
inline

Definition at line 73 of file TcpStream.h.

◆ set_handle()

void yarp::os::impl::posix::TcpStream::set_handle ( int  h)
inline

Definition at line 114 of file TcpStream.h.

◆ set_option()

int yarp::os::impl::posix::TcpStream::set_option ( int  level,
int  option,
void *  optval,
int  optlen 
) const
inline

Definition at line 117 of file TcpStream.h.


The documentation for this class was generated from the following files: