1 \section{\class{wxProtocol
}}\label{wxprotocol
}
3 \wxheading{Derived from
}
5 \helpref{wxSocketClient
}{wxsocketclient
}
9 \helpref{wxSocketBase
}{wxsocketbase
},
\helpref{wxURL
}{wxurl
}
11 % ----------------------------------------------------------------------------
13 % ----------------------------------------------------------------------------
14 \latexignore{\rtfignore{\membersection{Members
}}}
16 \membersection{wxProtocol::Reconnect
}\label{wxprotoreconnect
}
18 \func{bool
}{Reconnect
}{\void}
20 Tries to reestablish a previous opened connection (close and renegotiate connection).
22 \wxheading{Return value
}
24 TRUE, if the connection is established, else FALSE.
26 % ----------------------------------------------------------------------------
27 \membersection{wxProtocol::GetInputStream
}\label{wxprotogetinput
}
29 \func{wxInputStream *
}{GetInputStream
}{\param{const wxString\&
}{ path
}}
31 Creates a new input stream on the the specified path. You can use all but seek
32 functionnality of wxStream. Seek isn't available on all stream. For example,
33 http or ftp streams doesn't deal with it.
35 \wxheading{Return value
}
37 Returns the initialized stream. You will have to delete it yourself.
39 % ----------------------------------------------------------------------------
40 \membersection{wxProtocol::Abort
}\label{wxprotoabort
}
42 \func{bool
}{Abort
}{\void}
44 Abort the current stream.
46 \it{WARNING: It is advised to destroy the input stream instead of aborting the stream this way.
}
48 \wxheading{Return value
}
50 Returns TRUE, if successful, else FALSE.
52 % ----------------------------------------------------------------------------
53 \membersection{wxProtocol::GetError
}
55 \func{wxProtocolError
}{GetError
}{\void}
57 Returns the last occured error.
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.
}
73 % ----------------------------------------------------------------------------
74 \membersection{wxProtocol::GetContentType
}
76 \func{wxString
}{GetContentType
}{\void}
78 Returns the type of the content of the last opened stream. It is a mime-type.
80 % ----------------------------------------------------------------------------
81 \membersection{wxProtocol::SetUser
}
83 \func{void
}{SetUser
}{\param{const wxString\&
}{ user
}}
85 Sets the authentication user. It is mainly useful when FTP is used.
87 \membersection{wxProtocol::SetPassword
}
89 \func{void
}{SetPassword
}{\param{const wxString\&
}{ user
}}
91 Sets the authentication password. It is mainly useful when FTP is used.