apt  2.2.4
About: Apt (Advanced Package Tool) is a management system for software packages (Debian/Ubuntu). Release series 2.2.
  Fossies Dox: apt-2.2.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

FdFd Struct Reference
Inheritance diagram for FdFd:
[legend]
Collaboration diagram for FdFd:
[legend]

Public Member Functions

int Fd () APT_OVERRIDE
 Returns -1 for unusable, or an fd to select() on otherwise. More...
 
ssize_t Read (void *buf, size_t count) APT_OVERRIDE
 Should behave like read(2) More...
 
ssize_t Write (void *buf, size_t count) APT_OVERRIDE
 Should behave like write(2) More...
 
int Close () APT_OVERRIDE
 Closes the file descriptor. Can be called multiple times. More...
 
- Public Member Functions inherited from MethodFd
virtual ~MethodFd ()
 Destructor. More...
 
virtual bool HasPending ()
 If there is pending data. More...
 

Public Attributes

int fd = -1
 

Additional Inherited Members

- Static Public Member Functions inherited from MethodFd
static std::unique_ptr< MethodFdFromFd (int iFd)
 Construct a MethodFd from a UNIX file descriptor. More...
 

Detailed Description

Definition at line 86 of file connect.cc.

Member Function Documentation

◆ Close()

int Close ( )
inlinevirtual

Closes the file descriptor. Can be called multiple times.

Implements MethodFd.

Definition at line 92 of file connect.cc.

References fd.

◆ Fd()

int Fd ( )
inlinevirtual

Returns -1 for unusable, or an fd to select() on otherwise.

Implements MethodFd.

Definition at line 89 of file connect.cc.

References fd.

◆ Read()

ssize_t Read ( void *  buf,
size_t  count 
)
inlinevirtual

Should behave like read(2)

Implements MethodFd.

Definition at line 90 of file connect.cc.

References fd.

◆ Write()

ssize_t Write ( void *  buf,
size_t  count 
)
inlinevirtual

Should behave like write(2)

Implements MethodFd.

Definition at line 91 of file connect.cc.

References fd.

Member Data Documentation

◆ fd

int fd = -1

Definition at line 88 of file connect.cc.

Referenced by Close(), Connection::DoConnect(), Fd(), MethodFd::FromFd(), Read(), UnwrapTLS(), and Write().


The documentation for this struct was generated from the following file: