]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/latex/wx/ddeservr.tex
added skeleton of Port notes section
[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{Include files}
15
16<wx/dde.h>
17
18\wxheading{See also}
19
20\helpref{wxDDEClient}{wxddeclient}, \helpref{wxDDEConnection}{wxddeconnection}, \helpref{IPC overview}{ipcoverview}
21
22\latexignore{\rtfignore{\wxheading{Members}}}
23
24\membersection{wxDDEServer::wxDDEServer}
25
26\func{}{wxDDEServer}{\void}
27
28Constructs a server object.
29
30\membersection{wxDDEServer::Create}
31
32\func{bool}{Create}{\param{const wxString\& }{service}}
33
34Registers the server using the given service name. Under UNIX, the
35string must contain an integer id which is used as an Internet port
36number. FALSE is returned if the call failed (for example, the port
37number is already in use).
38
39\membersection{wxDDEServer::OnAcceptConnection}\label{wxddeserveronacceptconnection}
40
41\func{virtual wxConnectionBase *}{OnAcceptConnection}{\param{const wxString\& }{topic}}
42
43When a client calls {\bf MakeConnection}, the server receives the
44message and this member is called. The application should derive a
45member to intercept this message and return a connection object of
46either the standard wxDDEConnection type, or of a user-derived type. If the
47topic is ``STDIO'', the application may wish to refuse the connection.
48Under UNIX, when a server is created the OnAcceptConnection message is
49always sent for standard input and output, but in the context of DDE
50messages it doesn't make a lot of sense.
51
52