]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/latex/wx/ddeservr.tex
a bit more docs
[wxWidgets.git] / docs / latex / wx / ddeservr.tex
... / ...
CommitLineData
1\section{\class{wxDDEServer}}\label{wxddeserver}
2
3A wxDDEServer object represents the server part of a client-server DDE
4(Dynamic Data Exchange) conversation.
5
6This DDE-based implementation is
7available on Windows only, but a platform-independent, socket-based version
8of this API is available using \helpref{wxTCPServer}{wxtcpserver}.
9
10\wxheading{Derived from}
11
12wxServerBase
13
14\wxheading{See also}
15
16\helpref{wxDDEClient}{wxddeclient}, \helpref{wxDDEConnection}{wxddeconnection}, \helpref{IPC overview}{ipcoverview}
17
18\latexignore{\rtfignore{\wxheading{Members}}}
19
20\membersection{wxDDEServer::wxDDEServer}
21
22\func{}{wxDDEServer}{\void}
23
24Constructs a server object.
25
26\membersection{wxDDEServer::Create}
27
28\func{bool}{Create}{\param{const wxString\& }{service}}
29
30Registers the server using the given service name. Under UNIX, the
31string must contain an integer id which is used as an Internet port
32number. FALSE is returned if the call failed (for example, the port
33number is already in use).
34
35\membersection{wxDDEServer::OnAcceptConnection}\label{wxddeserveronacceptconnection}
36
37\func{virtual wxConnectionBase *}{OnAcceptConnection}{\param{const wxString\& }{topic}}
38
39When a client calls {\bf MakeConnection}, the server receives the
40message and this member is called. The application should derive a
41member to intercept this message and return a connection object of
42either the standard wxDDEConnection type, or of a user-derived type. If the
43topic is ``STDIO'', the application may wish to refuse the connection.
44Under UNIX, when a server is created the OnAcceptConnection message is
45always sent for standard input and output, but in the context of DDE
46messages it doesn't make a lot of sense.
47
48