STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ... ATLSTL - Template Software for the Active Template Library COMSTL - The Standard Template Library meets the Component Object Model .netSTL - Standard Template Library meets the Microsoft.NET Common Language Runtime InetSTL - The Standard Template Library meets WinInet MFCSTL - Template Software for the Microsoft Foundation Classes UNIXSTL - Template Software for the UNIX Operating System WinSTL - where the Standard Template Library meets the Win32 API

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

basic_connection Class Template Reference
[File-System Library (InetSTL)]

Represents an internet connection. More...

#include <inetstl_connection.h>

List of all members.

Public Methods

 basic_connection ()
 Default constructor.

 basic_connection (HINTERNET hsess, char_type const *server, INTERNET_PORT port, char_type const *userName, char_type const *password, is_dword_t service, is_dword_t flags, is_dword_t context=0)
 Create a connection with the given arguments.

 ~basic_connection ()
 Closes the connection, if open.

is_bool_t connect (HINTERNET hsess, char_type const *server, INTERNET_PORT port, char_type const *userName, char_type const *password, is_dword_t service, is_dword_t flags, is_dword_t context=0)
 Opens a connection with the given arguments.

void close ()
 Closes the connection, if open.

HINTERNET detach ()
 Removes the connection from this object, and returns the underlying WinInet handle to the caller, who must take responsibility for releasing it.

is_bool_t is_connected () const
 Indicates whether the object is managing an open connection.

is_dword_t last_error () const
 The last Win32/WinInet error associated with this connection object.

 operator HINTERNET ()
 Implicit conversion operator to a WinInet handle.


Detailed Description

template<typename C, typename X = throw_internet_exception_policy, typename T = filesystem_traits<C>>
class inetstl::basic_connection< C, X, T >

Represents an internet connection.


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

STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004