]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/protocol.tex
Some .tex tweaks; pngdemo fix.
[wxWidgets.git] / docs / latex / wx / protocol.tex
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
15 \latexignore{\rtfignore{\membersection{Members}}}
16
17 \membersection{wxProtocol::Reconnect}\label{wxprotoreconnect}
18
19 \func{bool}{Reconnect}{\void}
20
21 Tries to reestablish a previous opened connection (close and renegotiate connection).
22
23 \wxheading{Return value}
24
25 TRUE, if the connection is established, else FALSE.
26
27 % ----------------------------------------------------------------------------
28
29 \membersection{wxProtocol::GetInputStream}\label{wxprotogetinput}
30
31 \func{wxInputStream *}{GetInputStream}{\param{const wxString\&}{ path}}
32
33 Creates a new input stream on the the specified path. You can use all but seek
34 functionnality of wxStream. Seek isn't available on all stream. For example,
35 http or ftp streams doesn't deal with it.
36
37 \wxheading{Return value}
38
39 Returns the initialized stream. You will have to delete it yourself.
40
41 % ----------------------------------------------------------------------------
42
43 \membersection{wxProtocol::Abort}\label{wxprotoabort}
44
45 \func{bool}{Abort}{\void}
46
47 Abort the current stream.
48
49 \it{WARNING: It is advised to destroy the input stream instead of aborting the stream this way.}
50
51 \wxheading{Return value}
52
53 Returns TRUE, if successful, else FALSE.
54
55 % ----------------------------------------------------------------------------
56
57 \membersection{wxProtocol::GetError}
58
59 \func{wxProtocolError}{GetError}{\void}
60
61 Returns the last occured error.
62
63 % ----------------------------------------------------------------------------
64
65 \membersection{wxProtocol::GetContentType}
66
67 \func{wxString}{GetContentType}{\void}
68
69 Returns the type of the content of the last opened stream. It is a mime-type.
70
71 % ----------------------------------------------------------------------------
72
73 \membersection{wxProtocol::SetUser}
74
75 \func{void }{SetUser}{\param{const wxString\&}{ user}}
76
77 Sets the authentication user. It is mainly useful when FTP is used.
78
79 \membersection{wxProtocol::SetPassword}
80
81 \func{void}{SetPassword}{\param{const wxString\&}{ user}}
82
83 Sets the authentication password. It is mainly useful when FTP is used.
84