µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
os::posix::socket_impl Class Referenceabstract

#include <socket.h>

+ Inheritance diagram for os::posix::socket_impl:

Public Member Functions

Constructors & Destructor
 socket_impl (void)
 
virtual ~socket_impl () override
 
Public Member Functions
virtual socketdo_accept (sockaddr *address, socklen_t *address_len)=0
 
virtual int do_bind (const sockaddr *address, socklen_t address_len)=0
 
virtual int do_connect (const sockaddr *address, socklen_t address_len)=0
 
virtual int do_getpeername (sockaddr *address, socklen_t *address_len)=0
 
virtual int do_getsockname (sockaddr *address, socklen_t *address_len)=0
 
virtual int do_getsockopt (int level, int option_name, void *option_value, socklen_t *option_len)=0
 
virtual int do_listen (int backlog)=0
 
virtual ssize_t do_recv (void *buffer, size_t length, int flags)=0
 
virtual ssize_t do_recvfrom (void *buffer, size_t length, int flags, sockaddr *address, socklen_t *address_len)=0
 
virtual ssize_t do_recvmsg (msghdr *message, int flags)=0
 
virtual ssize_t do_send (const void *buffer, size_t length, int flags)=0
 
virtual ssize_t do_sendmsg (const msghdr *message, int flags)=0
 
virtual ssize_t do_sendto (const void *message, size_t length, int flags, const sockaddr *dest_addr, socklen_t dest_len)=0
 
virtual int do_setsockopt (int level, int option_name, const void *option_value, socklen_t option_len)=0
 
virtual int do_shutdown (int how)=0
 
virtual int do_sockatmark (void)=0
 
Public Member Functions
virtual void do_deallocate (void)
 
virtual bool do_is_opened (void)=0
 
virtual bool do_is_connected (void)
 
virtual ssize_t do_read (void *buf, std::size_t nbyte)=0
 
virtual ssize_t do_write (const void *buf, std::size_t nbyte)=0
 
virtual ssize_t do_writev (const iovec *iov, int iovcnt)
 
virtual int do_vfcntl (int cmd, std::va_list args)
 
virtual int do_isatty (void)
 
virtual int do_fstat (struct stat *buf)
 
virtual off_t do_lseek (off_t offset, int whence)=0
 
virtual int do_close (void)=0
 
off_t offset (void)
 
void offset (off_t offset)
 

Detailed Description

Definition at line 212 of file posix-io/socket.h.

Constructor & Destructor Documentation

◆ socket_impl()

os::posix::socket_impl::socket_impl ( void  )

Definition at line 216 of file socket.cpp.

◆ ~socket_impl()

os::posix::socket_impl::~socket_impl ( )
overridevirtual

Definition at line 223 of file socket.cpp.

Member Function Documentation

◆ do_accept()

virtual socket * os::posix::socket_impl::do_accept ( sockaddr address,
socklen_t address_len 
)
pure virtual

◆ do_bind()

virtual int os::posix::socket_impl::do_bind ( const sockaddr address,
socklen_t  address_len 
)
pure virtual

◆ do_close()

virtual int os::posix::io_impl::do_close ( void  )
pure virtualinherited

◆ do_connect()

virtual int os::posix::socket_impl::do_connect ( const sockaddr address,
socklen_t  address_len 
)
pure virtual

◆ do_deallocate()

void os::posix::io_impl::do_deallocate ( void  )
virtualinherited

Definition at line 483 of file io.cpp.

◆ do_fstat()

int os::posix::io_impl::do_fstat ( struct stat buf)
virtualinherited

Definition at line 535 of file io.cpp.

◆ do_getpeername()

virtual int os::posix::socket_impl::do_getpeername ( sockaddr address,
socklen_t address_len 
)
pure virtual

◆ do_getsockname()

virtual int os::posix::socket_impl::do_getsockname ( sockaddr address,
socklen_t address_len 
)
pure virtual

◆ do_getsockopt()

virtual int os::posix::socket_impl::do_getsockopt ( int  level,
int  option_name,
void *  option_value,
socklen_t option_len 
)
pure virtual

◆ do_is_connected()

bool os::posix::io_impl::do_is_connected ( void  )
virtualinherited

Definition at line 497 of file io.cpp.

◆ do_is_opened()

virtual bool os::posix::io_impl::do_is_opened ( void  )
pure virtualinherited

Implemented in os::posix::device_impl.

◆ do_isatty()

int os::posix::io_impl::do_isatty ( void  )
virtualinherited

Reimplemented in os::posix::tty_impl.

Definition at line 528 of file io.cpp.

◆ do_listen()

virtual int os::posix::socket_impl::do_listen ( int  backlog)
pure virtual

◆ do_lseek()

virtual off_t os::posix::io_impl::do_lseek ( off_t  offset,
int  whence 
)
pure virtualinherited

◆ do_read()

virtual ssize_t os::posix::io_impl::do_read ( void *  buf,
std::size_t  nbyte 
)
pure virtualinherited

◆ do_recv()

virtual ssize_t os::posix::socket_impl::do_recv ( void *  buffer,
size_t  length,
int  flags 
)
pure virtual

◆ do_recvfrom()

virtual ssize_t os::posix::socket_impl::do_recvfrom ( void *  buffer,
size_t  length,
int  flags,
sockaddr address,
socklen_t address_len 
)
pure virtual

◆ do_recvmsg()

virtual ssize_t os::posix::socket_impl::do_recvmsg ( msghdr *  message,
int  flags 
)
pure virtual

◆ do_send()

virtual ssize_t os::posix::socket_impl::do_send ( const void *  buffer,
size_t  length,
int  flags 
)
pure virtual

◆ do_sendmsg()

virtual ssize_t os::posix::socket_impl::do_sendmsg ( const msghdr *  message,
int  flags 
)
pure virtual

◆ do_sendto()

virtual ssize_t os::posix::socket_impl::do_sendto ( const void *  message,
size_t  length,
int  flags,
const sockaddr dest_addr,
socklen_t  dest_len 
)
pure virtual

◆ do_setsockopt()

virtual int os::posix::socket_impl::do_setsockopt ( int  level,
int  option_name,
const void *  option_value,
socklen_t  option_len 
)
pure virtual

◆ do_shutdown()

virtual int os::posix::socket_impl::do_shutdown ( int  how)
pure virtual

◆ do_sockatmark()

virtual int os::posix::socket_impl::do_sockatmark ( void  )
pure virtual

◆ do_vfcntl()

int os::posix::io_impl::do_vfcntl ( int  cmd,
std::va_list  args 
)
virtualinherited

Definition at line 521 of file io.cpp.

◆ do_write()

virtual ssize_t os::posix::io_impl::do_write ( const void *  buf,
std::size_t  nbyte 
)
pure virtualinherited

◆ do_writev()

ssize_t os::posix::io_impl::do_writev ( const iovec iov,
int  iovcnt 
)
virtualinherited

Definition at line 503 of file io.cpp.

◆ offset() [1/2]

void os::posix::io_impl::offset ( off_t  offset)
inlineinherited

Definition at line 482 of file io.h.

◆ offset() [2/2]

off_t os::posix::io_impl::offset ( void  )
inlineinherited

Definition at line 476 of file io.h.


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