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)  

HttpConnectFd Struct Reference
Inheritance diagram for HttpConnectFd:
[legend]
Collaboration diagram for HttpConnectFd:
[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...
 
bool HasPending () APT_OVERRIDE
 If there is pending data. More...
 
- Public Member Functions inherited from MethodFd
virtual ~MethodFd ()
 Destructor. More...
 

Public Attributes

std::unique_ptr< MethodFdUnderlyingFd
 
std::string Buffer
 

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 283 of file http.cc.

Member Function Documentation

◆ Close()

int Close ( )
inlinevirtual

Closes the file descriptor. Can be called multiple times.

Implements MethodFd.

Definition at line 308 of file http.cc.

References UnderlyingFd.

◆ Fd()

int Fd ( )
inlinevirtual

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

Implements MethodFd.

Definition at line 288 of file http.cc.

References UnderlyingFd.

◆ HasPending()

bool HasPending ( )
inlinevirtual

If there is pending data.

Reimplemented from MethodFd.

Definition at line 313 of file http.cc.

References Buffer.

◆ Read()

ssize_t Read ( void *  buf,
size_t  count 
)
inlinevirtual

Should behave like read(2)

Implements MethodFd.

Definition at line 290 of file http.cc.

References Buffer, and UnderlyingFd.

◆ Write()

ssize_t Write ( void *  buf,
size_t  count 
)
inlinevirtual

Should behave like write(2)

Implements MethodFd.

Definition at line 303 of file http.cc.

References UnderlyingFd.

Member Data Documentation

◆ Buffer

std::string Buffer

Definition at line 286 of file http.cc.

Referenced by HasPending(), and Read().

◆ UnderlyingFd

std::unique_ptr<MethodFd> UnderlyingFd

Definition at line 285 of file http.cc.

Referenced by Close(), Fd(), Read(), and Write().


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