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)  

Connection Struct Reference
Collaboration diagram for Connection:
[legend]

Public Member Functions

 Connection (struct addrinfo_emu *Addr, std::string const &Host, aptMethod *Owner)
 
 Connection (Connection &&Conn)=default
 
 Connection (const Connection &Conn)=delete
 
Connectionoperator= (const Connection &)=delete
 
Connectionoperator= (Connection &&Conn)=default
 
 ~Connection ()
 
std::unique_ptr< MethodFdTake ()
 
ResultState DoConnect ()
 
ResultState CheckError ()
 

Public Attributes

struct addrinfo_emuAddr
 
std::string Host
 
aptMethodOwner
 
std::unique_ptr< FdFdFd
 
char Name [1025]
 
char Service [32]
 

Detailed Description

Definition at line 116 of file connect.cc.

Constructor & Destructor Documentation

◆ Connection() [1/3]

Connection ( struct addrinfo_emu Addr,
std::string const &  Host,
aptMethod Owner 
)
inline

Definition at line 125 of file connect.cc.

◆ Connection() [2/3]

Connection ( Connection &&  Conn)
default

◆ Connection() [3/3]

Connection ( const Connection Conn)
delete

◆ ~Connection()

~Connection ( )
inline

Definition at line 135 of file connect.cc.

References Fd.

Member Function Documentation

◆ CheckError()

ResultState CheckError ( )

◆ DoConnect()

◆ operator=() [1/2]

Connection& operator= ( Connection &&  Conn)
default

◆ operator=() [2/2]

Connection& operator= ( const Connection )
delete

◆ Take()

std::unique_ptr<MethodFd> Take ( )
inline

Member Data Documentation

◆ Addr

struct addrinfo_emu* Addr

Definition at line 118 of file connect.cc.

Referenced by DoConnect(), and Take().

◆ Fd

std::unique_ptr<FdFd> Fd

Definition at line 121 of file connect.cc.

Referenced by CheckError(), DoConnect(), Take(), and ~Connection().

◆ Host

std::string Host

Definition at line 119 of file connect.cc.

Referenced by CheckError(), DoConnect(), and Take().

◆ Name

char Name[1025]

Definition at line 122 of file connect.cc.

Referenced by CheckError(), DoConnect(), and Take().

◆ Owner

aptMethod* Owner

Definition at line 120 of file connect.cc.

Referenced by CheckError(), DoConnect(), and Take().

◆ Service

char Service[32]

Definition at line 123 of file connect.cc.

Referenced by CheckError(), DoConnect(), and Take().


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