]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/protocol.tex
* Someone destroy a part of my previous work. Redocumenting ...
[wxWidgets.git] / docs / latex / wx / protocol.tex
CommitLineData
7d2946d2
GL
1\section{\class{wxProtocol}}\label{wxprotocol}
2
3\wxheading{Derived from}
4
5\helpref{wxSocketClient}{wxsocketclient}
6
7\wxheading{See also}
8
9\helpref{wxSocketBase}{wxsocketbase}, \helpref{wxURL}{wxurl}
10
11% ----------------------------------------------------------------------------
12% Members
13% ----------------------------------------------------------------------------
7d2946d2
GL
14\latexignore{\rtfignore{\membersection{Members}}}
15
16\membersection{wxProtocol::Reconnect}\label{wxprotoreconnect}
17
18\func{bool}{Reconnect}{\void}
19
20Tries to reestablish a previous opened connection (close and renegotiate connection).
21
22\wxheading{Return value}
23
24TRUE, if the connection is established, else FALSE.
25
26% ----------------------------------------------------------------------------
7d2946d2
GL
27\membersection{wxProtocol::GetInputStream}\label{wxprotogetinput}
28
29\func{wxInputStream *}{GetInputStream}{\param{const wxString\&}{ path}}
30
31Creates a new input stream on the the specified path. You can use all but seek
32functionnality of wxStream. Seek isn't available on all stream. For example,
33http or ftp streams doesn't deal with it.
34
35\wxheading{Return value}
36
37Returns the initialized stream. You will have to delete it yourself.
38
39% ----------------------------------------------------------------------------
7d2946d2
GL
40\membersection{wxProtocol::Abort}\label{wxprotoabort}
41
6be663cf 42\func{bool}{Abort}{\void}
7d2946d2
GL
43
44Abort the current stream.
6be663cf 45
7d2946d2
GL
46\it{WARNING: It is advised to destroy the input stream instead of aborting the stream this way.}
47
48\wxheading{Return value}
49
50Returns TRUE, if successful, else FALSE.
51
52% ----------------------------------------------------------------------------
7d2946d2
GL
53\membersection{wxProtocol::GetError}
54
6be663cf 55\func{wxProtocolError}{GetError}{\void}
7d2946d2
GL
56
57Returns the last occured error.
58
7da42094
GL
59\twocolwidtha{7cm}
60\begin{twocollist}\itemsep=0pt
61\twocolitem{{\bf wxPROTO\_NOERR}}{No error.}
62\twocolitem{{\bf wxPROTO\_NETERR}}{A generic network error occured.}
63\twocolitem{{\bf wxPROTO\_PROTERR}}{An error occured during negotiation.}
64\twocolitem{{\bf wxPROTO\_CONNERR}}{The client failed to connect the server.}
65\twocolitem{{\bf wxPROTO\_INVVAL}}{Invalid value.}
66\twocolitem{{\bf wxPROTO\_NOHNDLR}}{.}
67\twocolitem{{\bf wxPROTO\_NOFILE}}{The remote file doesn't exist.}
68\twocolitem{{\bf wxPROTO\_ABRT}}{Last action aborted.}
69\twocolitem{{\bf wxPROTO\_RCNCT}}{An error occured during reconnection.}
70\twocolitem{{\bf wxPROTO\_STREAM}}{Someone tried to send a command during a transfer.}
b82827dd 71\end{twocollist}
7da42094 72
7d2946d2 73% ----------------------------------------------------------------------------
7d2946d2
GL
74\membersection{wxProtocol::GetContentType}
75
6be663cf 76\func{wxString}{GetContentType}{\void}
7d2946d2
GL
77
78Returns the type of the content of the last opened stream. It is a mime-type.
79
80% ----------------------------------------------------------------------------
7d2946d2
GL
81\membersection{wxProtocol::SetUser}
82
83\func{void }{SetUser}{\param{const wxString\&}{ user}}
84
85Sets the authentication user. It is mainly useful when FTP is used.
86
87\membersection{wxProtocol::SetPassword}
88
6be663cf 89\func{void}{SetPassword}{\param{const wxString\&}{ user}}
7d2946d2
GL
90
91Sets the authentication password. It is mainly useful when FTP is used.
6be663cf 92