]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/latex/wx/protocol.tex
isosurf corrections
[wxWidgets.git] / docs / latex / wx / protocol.tex
... / ...
CommitLineData
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% ----------------------------------------------------------------------------
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% ----------------------------------------------------------------------------
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% ----------------------------------------------------------------------------
40\membersection{wxProtocol::Abort}\label{wxprotoabort}
41
42\func{bool}{Abort}{\void}
43
44Abort the current stream.
45
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% ----------------------------------------------------------------------------
53\membersection{wxProtocol::GetError}
54
55\func{wxProtocolError}{GetError}{\void}
56
57Returns the last occured error.
58
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.}
71\end{twocollist}
72
73% ----------------------------------------------------------------------------
74\membersection{wxProtocol::GetContentType}
75
76\func{wxString}{GetContentType}{\void}
77
78Returns the type of the content of the last opened stream. It is a mime-type.
79
80% ----------------------------------------------------------------------------
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
89\func{void}{SetPassword}{\param{const wxString\&}{ user}}
90
91Sets the authentication password. It is mainly useful when FTP is used.
92