kioslave/nntp
#include <nntp.h>
Inherits TCPSlaveBase.
|
| NNTPProtocol (const QByteArray &pool, const QByteArray &app, bool isSSL) |
|
virtual void | get (const KUrl &url) |
|
virtual void | listDir (const KUrl &url) |
|
virtual void | put (const KUrl &url, int permissions, KIO::JobFlags flags) |
|
virtual void | setHost (const QString &host, quint16 port, const QString &user, const QString &pass) |
|
virtual void | special (const QByteArray &data) |
|
virtual void | stat (const KUrl &url) |
|
NNTP KIO slave.
- References
- RFC 850: Standard for interchange of USENET messages
- RFC 2980: Common NNTP Extensions (updated by RFC 3977)
- RFC 3977: Network News Transfer Protocol
- RFC 4643: Network News Transfer Protocol (NNTP) Extension for Authentication
Definition at line 33 of file nntp.h.
Default Constructor.
- Parameters
-
isSSL | is a true or false to indicate whether ssl is to be used |
Definition at line 62 of file nntp.cpp.
void NNTPProtocol::nntp_close |
( |
| ) |
|
|
protected |
Attempt to properly shut down the NNTP connection by sending "QUIT\r\n" before closing the socket.
Definition at line 722 of file nntp.cpp.
bool NNTPProtocol::nntp_open |
( |
| ) |
|
|
protected |
Attempt to initiate a NNTP connection via a TCP socket, if no existing connection could be reused.
Definition at line 731 of file nntp.cpp.
bool NNTPProtocol::post_article |
( |
| ) |
|
|
protected |
int NNTPProtocol::sendCommand |
( |
const QString & |
cmd | ) |
|
|
protected |
Send a command to the server.
Returns the response code and the response line
- Parameters
-
cmd | the command to send to server |
Definition at line 793 of file nntp.cpp.
void NNTPProtocol::special |
( |
const QByteArray & |
data | ) |
|
|
virtual |
Special command: 1 = post article it takes no other args, the article data are requested by dataReq() and should be valid as in RFC850.
It's not checked for correctness here.
- Parameters
-
data | the special command for article |
- Deprecated:
- use put() for posting
Definition at line 186 of file nntp.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:13 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.