.TH "KNetwork::KHttpProxySocketDevice" kde3 "11 Jun 2005" "Version Version 3.4.1" "kdecore Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KNetwork::KHttpProxySocketDevice \- The low-level backend for HTTP proxying.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <khttproxysocketdevice.h>\fP
.PP
Inherits \fBKNetwork::KSocketDevice\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKHttpProxySocketDevice\fP (const \fBKSocketBase\fP *=0L)"
.br
.ti -1c
.RI "\fBKHttpProxySocketDevice\fP (const \fBKResolverEntry\fP &proxy)"
.br
.ti -1c
.RI "virtual \fB~KHttpProxySocketDevice\fP ()"
.br
.ti -1c
.RI "virtual int \fBcapabilities\fP () const "
.br
.ti -1c
.RI "const \fBKResolverEntry\fP & \fBproxyServer\fP () const "
.br
.ti -1c
.RI "void \fBsetProxyServer\fP (const \fBKResolverEntry\fP &proxy)"
.br
.ti -1c
.RI "virtual void \fBclose\fP ()"
.br
.ti -1c
.RI "virtual bool \fBconnect\fP (const \fBKResolverEntry\fP &address)"
.br
.ti -1c
.RI "virtual bool \fBconnect\fP (const \fBQString\fP &name, const \fBQString\fP &service)"
.br
.ti -1c
.RI "virtual \fBKSocketAddress\fP \fBpeerAddress\fP () const "
.br
.ti -1c
.RI "virtual \fBKSocketAddress\fP \fBexternalAddress\fP () const "
.br
.in -1c
.SS "Static Public Attributes"

.in +1c
.ti -1c
.RI "static \fBKResolverEntry\fP \fBdefaultProxy\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
The low-level backend for HTTP proxying. 

This class derives from \fBKSocketDevice\fP and implements the necessary calls to make a connection through an HTTP proxy.
.PP
\fBAuthor:\fP
.RS 4
Thiago Macieira <thiago.macieira@kdemail.net> 
.RE
.PP

.PP
Definition at line 43 of file khttpproxysocketdevice.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KHttpProxySocketDevice::KHttpProxySocketDevice (const \fBKSocketBase\fP * = \fC0L\fP)"
.PP
Constructor. 
.PP
Definition at line 55 of file khttpproxysocketdevice.cpp.
.SS "KHttpProxySocketDevice::KHttpProxySocketDevice (const \fBKResolverEntry\fP & proxy)"
.PP
Constructor with proxy server's address. 
.PP
Definition at line 60 of file khttpproxysocketdevice.cpp.
.SS "KHttpProxySocketDevice::~\fBKHttpProxySocketDevice\fP ()\fC [virtual]\fP"
.PP
Destructor. 
.PP
Definition at line 66 of file khttpproxysocketdevice.cpp.
.SH "Member Function Documentation"
.PP 
.SS "int KHttpProxySocketDevice::capabilities () const\fC [virtual]\fP"
.PP
Sets our capabilities. 
.PP
Reimplemented from \fBKNetwork::KSocketDevice\fP.
.PP
Definition at line 74 of file khttpproxysocketdevice.cpp.
.SS "const \fBKResolverEntry\fP & KHttpProxySocketDevice::proxyServer () const"
.PP
Retrieves the proxy server address. 
.PP
Definition at line 80 of file khttpproxysocketdevice.cpp.
.SS "void KHttpProxySocketDevice::setProxyServer (const \fBKResolverEntry\fP & proxy)"
.PP
Sets the proxy server address. 
.PP
Definition at line 85 of file khttpproxysocketdevice.cpp.
.SS "void KHttpProxySocketDevice::close ()\fC [virtual]\fP"
.PP
Closes the socket. 
.PP
Reimplemented from \fBKNetwork::KSocketDevice\fP.
.PP
Definition at line 90 of file khttpproxysocketdevice.cpp.
.SS "bool KHttpProxySocketDevice::connect (const \fBKResolverEntry\fP & address)\fC [virtual]\fP"
.PP
Overrides connection. 
.PP
Reimplemented from \fBKNetwork::KSocketDevice\fP.
.PP
Definition at line 109 of file khttpproxysocketdevice.cpp.
.PP
References QIODevice::isOpen(), and KNetwork::KActiveSocketBase::resetError().
.SS "bool KHttpProxySocketDevice::connect (const \fBQString\fP & name, const \fBQString\fP & service)\fC [virtual]\fP"
.PP
Name-based connection. 
.PP
We can tell the HTTP proxy server the full name. 
.PP
Definition at line 131 of file khttpproxysocketdevice.cpp.
.PP
References QString::arg(), QString::fromLatin1(), QIODevice::isOpen(), QString::latin1(), and KNetwork::KActiveSocketBase::setError().
.SS "\fBKSocketAddress\fP KHttpProxySocketDevice::peerAddress () const\fC [virtual]\fP"
.PP
Return the peer address. 
.PP
Reimplemented from \fBKNetwork::KSocketDevice\fP.
.PP
Definition at line 97 of file khttpproxysocketdevice.cpp.
.PP
References QIODevice::isOpen().
.SS "\fBKSocketAddress\fP KHttpProxySocketDevice::externalAddress () const\fC [virtual]\fP"
.PP
Return the externally visible address. 
.PP
We can't tell what that address is, so this function always returns an empty object. 
.PP
Reimplemented from \fBKNetwork::KSocketDevice\fP.
.PP
Definition at line 104 of file khttpproxysocketdevice.cpp.
.SH "Member Data Documentation"
.PP 
.SS "\fBKResolverEntry\fP \fBKHttpProxySocketDevice::defaultProxy\fP\fC [static]\fP"
.PP
This is the default proxy server to be used. 
.PP
Applications may want to set this value so that calling \fBsetProxyServer\fP is unnecessary. 
.PP
Definition at line 40 of file khttpproxysocketdevice.cpp.

.SH "Author"
.PP 
Generated automatically by Doxygen for kdecore Library from the source code.
