]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/ddeservr.tex
API change: a single SELECTION_CHANGED not lots of SELECT and UNSELECT events
[wxWidgets.git] / docs / latex / wx / ddeservr.tex
CommitLineData
a660d684
KB
1\section{\class{wxDDEServer}}\label{wxddeserver}
2
3A wxDDEServer object represents the server part of a client-server DDE
e2a6f233
JS
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}.
a660d684
KB
9
10\wxheading{Derived from}
11
e2a6f233 12wxServerBase
a660d684 13
954b8ae6
JS
14\wxheading{Include files}
15
16<wx/dde.h>
17
a7af285d
VZ
18\wxheading{Library}
19
20\helpref{wxBase}{librarieslist}
21
a660d684
KB
22\wxheading{See also}
23
e2a6f233 24\helpref{wxDDEClient}{wxddeclient}, \helpref{wxDDEConnection}{wxddeconnection}, \helpref{IPC overview}{ipcoverview}
a660d684
KB
25
26\latexignore{\rtfignore{\wxheading{Members}}}
27
08f1d438 28\membersection{wxDDEServer::wxDDEServer}\label{wxddeserverctor}
a660d684
KB
29
30\func{}{wxDDEServer}{\void}
31
32Constructs a server object.
33
08f1d438 34\membersection{wxDDEServer::Create}\label{wxddeservercreate}
a660d684
KB
35
36\func{bool}{Create}{\param{const wxString\& }{service}}
37
38Registers the server using the given service name. Under UNIX, the
39string must contain an integer id which is used as an Internet port
cc81d32f 40number. false is returned if the call failed (for example, the port
a660d684
KB
41number is already in use).
42
43\membersection{wxDDEServer::OnAcceptConnection}\label{wxddeserveronacceptconnection}
44
e2a6f233 45\func{virtual wxConnectionBase *}{OnAcceptConnection}{\param{const wxString\& }{topic}}
a660d684
KB
46
47When a client calls {\bf MakeConnection}, the server receives the
48message and this member is called. The application should derive a
49member to intercept this message and return a connection object of
50either the standard wxDDEConnection type, or of a user-derived type. If the
51topic is ``STDIO'', the application may wish to refuse the connection.
52Under UNIX, when a server is created the OnAcceptConnection message is
53always sent for standard input and output, but in the context of DDE
54messages it doesn't make a lot of sense.
55