FARGOS/VISTA Object Management Environment Core
..
|
Unix file-domain socket-specific I/O descriptor. More...
#include <OMEsocket.h>
Public Member Functions | |
OMEunixDomainDescriptor (uint64_t handle, OMEioDescriptor::OMEopenMode t, const char *fileName) | |
~OMEunixDomainDescriptor () | |
![]() | |
OMEsocketDescriptor (uint64_t handle, OMEioDescriptor::OMEopenMode t) | |
~OMEsocketDescriptor () | |
virtual int | readBytes (unsigned char *bfr, size_t bytes, size_t *actualBytes, int *errRet) override |
virtual int | writeBytes (const unsigned char *bfr, size_t bytes, size_t *actualBytes, int *errRet) override |
virtual int | writeVectorOfBytes (const OMEioVector *v, uint_fast16_t elementCount, size_t *actualBytes, int *errRet, size_t skipBytes=0) override |
virtual OMEevent * | selectForRead (OMEeventCallbackFP func, OMEthread *t=nullptr) override |
virtual OMEevent * | selectForWrite (OMEeventCallbackFP func, OMEthread *t=nullptr) override |
virtual int | close (int mask) override |
virtual OMEstring * | getLocalAddress () const override |
virtual OMEstring * | getPeerAddress () const override |
virtual int | getErrorStatus () const override |
virtual bool | isOpen () const override |
virtual OMEioDescriptor * | acceptConnection (int *errRet) override |
virtual int | receiveDatagram (unsigned char *bfr, size_t bytes, size_t *actualBytes, OMEstring *fromInfo, int *errRet) override |
virtual int | sendDatagram (const unsigned char *bfr, size_t bytes, size_t *actualBytes, const char *toInfo, int *errRet) override |
![]() | |
OMEioDescriptor (uint64_t handle, OMEioEvent::OMEfileType type) | |
virtual | ~OMEioDescriptor () |
uint64_t | getSelectHandle () const OME_ALWAYS_INLINE |
virtual int | seekToOffset (size_t offset) |
uint_fast16_t | adjustVector (OMEioVector *result, uint_fast16_t count, const OMEioVector *v, size_t skipCount) |
Protected Attributes | |
OMEstring | socketFileName |
![]() | |
uint32_t | savedOpenMode |
int | openSides |
bool | selectedForRead |
bool | selectedForWrite |
Additional Inherited Members | |
![]() | |
enum | OMEopenMode { read =OME_IO_READ, write =OME_IO_WRITE, listen =OME_IO_LISTEN, connect =OME_IO_CONNECT, create =OME_IO_CREATE, mustExist =OME_IO_MUST_EXIST, truncate =OME_IO_TRUNCATE, append =OME_IO_APPEND, nonblocking =OME_IO_NONBLOCKING, datagram =OME_IO_DATAGRAM, raw =OME_IO_RAW, multicast =OME_IO_MULTICAST } |
![]() | |
static OMEioDescriptor * | openSocketScheme (const OMEstring &url, int *errRet=nullptr) |
![]() | |
static OMEioDescriptor * | openIOscheme (const char *name, uint32_t openMode) |
![]() | |
uint64_t | ioHandle |
OMEioEvent::OMEfileType | descriptorType |
![]() | |
static OMEioDescriptor * | openSocket (struct sockaddr *sock, int sockLen, uint32_t openMode, int *errRet=nullptr) |
Unix file-domain socket-specific I/O descriptor.
OMEunixDomainDescriptor::OMEunixDomainDescriptor | ( | uint64_t | handle, |
OMEioDescriptor::OMEopenMode | t, | ||
const char * | fileName | ||
) |
OMEunixDomainDescriptor::~OMEunixDomainDescriptor | ( | ) |
|
protected |
![]() | Generated: Tue Jul 28 2020 16:03:27
Support Information |