1999-01-10 15:14:07 -05:00
|
|
|
\section{\class{wxProtocol}}\label{wxprotocol}
|
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxSocketClient}{wxsocketclient}
|
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/protocol/protocol.h>
|
|
|
|
|
1999-01-10 15:14:07 -05:00
|
|
|
\wxheading{See also}
|
|
|
|
|
|
|
|
\helpref{wxSocketBase}{wxsocketbase}, \helpref{wxURL}{wxurl}
|
|
|
|
|
|
|
|
% ----------------------------------------------------------------------------
|
|
|
|
% Members
|
|
|
|
% ----------------------------------------------------------------------------
|
1999-02-27 09:36:05 -05:00
|
|
|
|
2000-03-14 19:21:49 -05:00
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
1999-01-10 15:14:07 -05:00
|
|
|
|
|
|
|
\membersection{wxProtocol::Reconnect}\label{wxprotoreconnect}
|
|
|
|
|
|
|
|
\func{bool}{Reconnect}{\void}
|
|
|
|
|
|
|
|
Tries to reestablish a previous opened connection (close and renegotiate connection).
|
|
|
|
|
|
|
|
\wxheading{Return value}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
true, if the connection is established, else false.
|
1999-01-10 15:14:07 -05:00
|
|
|
|
|
|
|
% ----------------------------------------------------------------------------
|
|
|
|
\membersection{wxProtocol::GetInputStream}\label{wxprotogetinput}
|
|
|
|
|
|
|
|
\func{wxInputStream *}{GetInputStream}{\param{const wxString\&}{ path}}
|
|
|
|
|
|
|
|
Creates a new input stream on the the specified path. You can use all but seek
|
2002-06-07 16:15:28 -04:00
|
|
|
functionality of wxStream. Seek isn't available on all stream. For example,
|
1999-02-10 15:01:06 -05: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 15:14:07 -05:00
|
|
|
|
|
|
|
\wxheading{Return value}
|
|
|
|
|
1999-02-10 15:01:06 -05: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 15:14:07 -05:00
|
|
|
|
|
|
|
% ----------------------------------------------------------------------------
|
|
|
|
\membersection{wxProtocol::Abort}\label{wxprotoabort}
|
|
|
|
|
1999-01-12 13:28:34 -05:00
|
|
|
\func{bool}{Abort}{\void}
|
1999-01-10 15:14:07 -05:00
|
|
|
|
|
|
|
Abort the current stream.
|
1999-01-12 13:28:34 -05:00
|
|
|
|
1999-02-10 15:01:06 -05:00
|
|
|
\wxheading{Warning}
|
|
|
|
|
|
|
|
It is advised to destroy the input stream instead of aborting the stream this way.
|
1999-01-10 15:14:07 -05:00
|
|
|
|
|
|
|
\wxheading{Return value}
|
|
|
|
|
2003-01-17 19:16:34 -05:00
|
|
|
Returns true, if successful, else false.
|
1999-01-10 15:14:07 -05:00
|
|
|
|
|
|
|
% ----------------------------------------------------------------------------
|
|
|
|
\membersection{wxProtocol::GetError}
|
|
|
|
|
1999-01-12 13:28:34 -05:00
|
|
|
\func{wxProtocolError}{GetError}{\void}
|
1999-01-10 15:14:07 -05:00
|
|
|
|
2000-07-15 15:51:35 -04:00
|
|
|
Returns the last occurred error.
|
1999-01-10 15:14:07 -05:00
|
|
|
|
1999-01-17 11:10:18 -05:00
|
|
|
\twocolwidtha{7cm}
|
|
|
|
\begin{twocollist}\itemsep=0pt
|
|
|
|
\twocolitem{{\bf wxPROTO\_NOERR}}{No error.}
|
2000-07-15 15:51:35 -04:00
|
|
|
\twocolitem{{\bf wxPROTO\_NETERR}}{A generic network error occurred.}
|
|
|
|
\twocolitem{{\bf wxPROTO\_PROTERR}}{An error occurred during negotiation.}
|
1999-01-17 11:10:18 -05: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 15:51:35 -04:00
|
|
|
\twocolitem{{\bf wxPROTO\_RCNCT}}{An error occurred during reconnection.}
|
1999-01-17 11:10:18 -05:00
|
|
|
\twocolitem{{\bf wxPROTO\_STREAM}}{Someone tried to send a command during a transfer.}
|
1999-01-17 14:25:06 -05:00
|
|
|
\end{twocollist}
|
1999-01-17 11:10:18 -05:00
|
|
|
|
1999-01-10 15:14:07 -05:00
|
|
|
% ----------------------------------------------------------------------------
|
|
|
|
\membersection{wxProtocol::GetContentType}
|
|
|
|
|
1999-01-12 13:28:34 -05:00
|
|
|
\func{wxString}{GetContentType}{\void}
|
1999-01-10 15:14:07 -05:00
|
|
|
|
|
|
|
Returns the type of the content of the last opened stream. It is a mime-type.
|
|
|
|
|
|
|
|
% ----------------------------------------------------------------------------
|
|
|
|
\membersection{wxProtocol::SetUser}
|
|
|
|
|
|
|
|
\func{void }{SetUser}{\param{const wxString\&}{ user}}
|
|
|
|
|
|
|
|
Sets the authentication user. It is mainly useful when FTP is used.
|
|
|
|
|
|
|
|
\membersection{wxProtocol::SetPassword}
|
|
|
|
|
1999-01-12 13:28:34 -05:00
|
|
|
\func{void}{SetPassword}{\param{const wxString\&}{ user}}
|
1999-01-10 15:14:07 -05:00
|
|
|
|
|
|
|
Sets the authentication password. It is mainly useful when FTP is used.
|
1999-02-12 03:22:29 -05:00
|
|
|
|