1999-01-10 20:14:07 +00:00
|
|
|
\section{\class{wxProtocol}}\label{wxprotocol}
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxSocketClient}{wxsocketclient}
|
|
|
|
|
1999-02-15 20:41:29 +00:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/protocol/protocol.h>
|
|
|
|
|
1999-01-10 20:14:07 +00:00
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxSocketBase}{wxsocketbase}, \helpref{wxURL}{wxurl}
|
|
|
|
|
|
|
|
% ----------------------------------------------------------------------------
|
|
|
|
% Members
|
|
|
|
% ----------------------------------------------------------------------------
|
1999-02-27 14:36:05 +00:00
|
|
|
|
2000-03-15 00:21:49 +00:00
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
1999-01-10 20:14:07 +00:00
|
|
|
|
2004-09-27 16:01:38 +00:00
|
|
|
\membersection{wxProtocol::Reconnect}\label{wxprotocolreconnect}
|
1999-01-10 20:14:07 +00:00
|
|
|
|
|
|
|
\func{bool}{Reconnect}{\void}
|
|
|
|
|
|
|
|
Tries to reestablish a previous opened connection (close and renegotiate connection).
|
|
|
|
|
|
|
|
\wxheading{Return value}
|
|
|
|
|
2003-01-18 00:16:34 +00:00
|
|
|
true, if the connection is established, else false.
|
1999-01-10 20:14:07 +00:00
|
|
|
|
|
|
|
% ----------------------------------------------------------------------------
|
2004-09-27 16:01:38 +00:00
|
|
|
\membersection{wxProtocol::GetInputStream}\label{wxprotocolgetinput}
|
1999-01-10 20:14:07 +00:00
|
|
|
|
|
|
|
\func{wxInputStream *}{GetInputStream}{\param{const wxString\&}{ path}}
|
|
|
|
|
2005-04-08 14:34:30 +00:00
|
|
|
Creates a new input stream on the specified path. You can use all but seek
|
2002-06-07 20:15:28 +00:00
|
|
|
functionality of wxStream. Seek isn't available on all stream. For example,
|
1999-02-10 20:01:06 +00:00
|
|
|
http or ftp streams doesn't deal with it. Other functions like StreamSize and
|
|
|
|
Tell aren't available for the moment for this sort of stream.
|
|
|
|
You will be notified when the EOF is reached by an error.
|
1999-01-10 20:14:07 +00:00
|
|
|
|
|
|
|
\wxheading{Return value}
|
|
|
|
|
1999-02-10 20:01:06 +00:00
|
|
|
Returns the initialized stream. You will have to delete it yourself once you
|
|
|
|
don't use it anymore. The destructor closes the network connection.
|
|
|
|
|
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxInputStream}{wxinputstream}
|
1999-01-10 20:14:07 +00:00
|
|
|
|
|
|
|
% ----------------------------------------------------------------------------
|
2004-09-27 16:01:38 +00:00
|
|
|
\membersection{wxProtocol::Abort}\label{wxprotocolabort}
|
1999-01-10 20:14:07 +00:00
|
|
|
|
1999-01-12 18:28:34 +00:00
|
|
|
\func{bool}{Abort}{\void}
|
1999-01-10 20:14:07 +00:00
|
|
|
|
|
|
|
Abort the current stream.
|
1999-01-12 18:28:34 +00:00
|
|
|
|
1999-02-10 20:01:06 +00:00
|
|
|
\wxheading{Warning}
|
|
|
|
|
|
|
|
It is advised to destroy the input stream instead of aborting the stream this way.
|
1999-01-10 20:14:07 +00:00
|
|
|
|
|
|
|
\wxheading{Return value}
|
|
|
|
|
2003-01-18 00:16:34 +00:00
|
|
|
Returns true, if successful, else false.
|
1999-01-10 20:14:07 +00:00
|
|
|
|
|
|
|
% ----------------------------------------------------------------------------
|
2004-09-27 16:01:38 +00:00
|
|
|
\membersection{wxProtocol::GetError}\label{wxprotocolgeterror}
|
1999-01-10 20:14:07 +00:00
|
|
|
|
1999-01-12 18:28:34 +00:00
|
|
|
\func{wxProtocolError}{GetError}{\void}
|
1999-01-10 20:14:07 +00:00
|
|
|
|
2000-07-15 19:51:35 +00:00
|
|
|
Returns the last occurred error.
|
1999-01-10 20:14:07 +00:00
|
|
|
|
1999-01-17 16:10:18 +00:00
|
|
|
\twocolwidtha{7cm}
|
|
|
|
\begin{twocollist}\itemsep=0pt
|
|
|
|
\twocolitem{{\bf wxPROTO\_NOERR}}{No error.}
|
2000-07-15 19:51:35 +00:00
|
|
|
\twocolitem{{\bf wxPROTO\_NETERR}}{A generic network error occurred.}
|
|
|
|
\twocolitem{{\bf wxPROTO\_PROTERR}}{An error occurred during negotiation.}
|
1999-01-17 16:10:18 +00:00
|
|
|
\twocolitem{{\bf wxPROTO\_CONNERR}}{The client failed to connect the server.}
|
|
|
|
\twocolitem{{\bf wxPROTO\_INVVAL}}{Invalid value.}
|
|
|
|
\twocolitem{{\bf wxPROTO\_NOHNDLR}}{.}
|
|
|
|
\twocolitem{{\bf wxPROTO\_NOFILE}}{The remote file doesn't exist.}
|
|
|
|
\twocolitem{{\bf wxPROTO\_ABRT}}{Last action aborted.}
|
2000-07-15 19:51:35 +00:00
|
|
|
\twocolitem{{\bf wxPROTO\_RCNCT}}{An error occurred during reconnection.}
|
1999-01-17 16:10:18 +00:00
|
|
|
\twocolitem{{\bf wxPROTO\_STREAM}}{Someone tried to send a command during a transfer.}
|
1999-01-17 19:25:06 +00:00
|
|
|
\end{twocollist}
|
1999-01-17 16:10:18 +00:00
|
|
|
|
1999-01-10 20:14:07 +00:00
|
|
|
% ----------------------------------------------------------------------------
|
2004-09-27 16:01:38 +00:00
|
|
|
\membersection{wxProtocol::GetContentType}\label{wxprotocolgetcontenttype}
|
1999-01-10 20:14:07 +00:00
|
|
|
|
1999-01-12 18:28:34 +00:00
|
|
|
\func{wxString}{GetContentType}{\void}
|
1999-01-10 20:14:07 +00:00
|
|
|
|
|
|
|
Returns the type of the content of the last opened stream. It is a mime-type.
|
|
|
|
|
|
|
|
% ----------------------------------------------------------------------------
|
2004-09-27 16:01:38 +00:00
|
|
|
\membersection{wxProtocol::SetUser}\label{wxprotocolsetuser}
|
1999-01-10 20:14:07 +00:00
|
|
|
|
|
|
|
\func{void }{SetUser}{\param{const wxString\&}{ user}}
|
|
|
|
|
|
|
|
Sets the authentication user. It is mainly useful when FTP is used.
|
|
|
|
|
2004-09-27 16:01:38 +00:00
|
|
|
\membersection{wxProtocol::SetPassword}\label{wxprotocolsetpassword}
|
1999-01-10 20:14:07 +00:00
|
|
|
|
1999-01-12 18:28:34 +00:00
|
|
|
\func{void}{SetPassword}{\param{const wxString\&}{ user}}
|
1999-01-10 20:14:07 +00:00
|
|
|
|
|
|
|
Sets the authentication password. It is mainly useful when FTP is used.
|
1999-02-12 08:22:29 +00:00
|
|
|
|