1998-05-20 10:25:30 -04:00
|
|
|
\section{\class{wxDDEServer}}\label{wxddeserver}
|
|
|
|
|
|
|
|
A wxDDEServer object represents the server part of a client-server DDE
|
1999-01-25 13:33:08 -05:00
|
|
|
(Dynamic Data Exchange) conversation.
|
|
|
|
|
|
|
|
This DDE-based implementation is
|
|
|
|
available on Windows only, but a platform-independent, socket-based version
|
|
|
|
of this API is available using \helpref{wxTCPServer}{wxtcpserver}.
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\wxheading{Derived from}
|
|
|
|
|
1999-01-25 13:33:08 -05:00
|
|
|
wxServerBase
|
1998-05-20 10:25:30 -04:00
|
|
|
|
1999-02-15 15:41:29 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
|
|
|
<wx/dde.h>
|
|
|
|
|
1998-05-20 10:25:30 -04:00
|
|
|
\wxheading{See also}
|
|
|
|
|
1999-01-25 13:33:08 -05:00
|
|
|
\helpref{wxDDEClient}{wxddeclient}, \helpref{wxDDEConnection}{wxddeconnection}, \helpref{IPC overview}{ipcoverview}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
2004-09-23 11:41:43 -04:00
|
|
|
\membersection{wxDDEServer::wxDDEServer}\label{wxddeserverctor}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{}{wxDDEServer}{\void}
|
|
|
|
|
|
|
|
Constructs a server object.
|
|
|
|
|
2004-09-23 11:41:43 -04:00
|
|
|
\membersection{wxDDEServer::Create}\label{wxddeservercreate}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
\func{bool}{Create}{\param{const wxString\& }{service}}
|
|
|
|
|
|
|
|
Registers the server using the given service name. Under UNIX, the
|
|
|
|
string must contain an integer id which is used as an Internet port
|
2003-01-17 19:16:34 -05:00
|
|
|
number. false is returned if the call failed (for example, the port
|
1998-05-20 10:25:30 -04:00
|
|
|
number is already in use).
|
|
|
|
|
|
|
|
\membersection{wxDDEServer::OnAcceptConnection}\label{wxddeserveronacceptconnection}
|
|
|
|
|
1999-01-25 13:33:08 -05:00
|
|
|
\func{virtual wxConnectionBase *}{OnAcceptConnection}{\param{const wxString\& }{topic}}
|
1998-05-20 10:25:30 -04:00
|
|
|
|
|
|
|
When a client calls {\bf MakeConnection}, the server receives the
|
|
|
|
message and this member is called. The application should derive a
|
|
|
|
member to intercept this message and return a connection object of
|
|
|
|
either the standard wxDDEConnection type, or of a user-derived type. If the
|
|
|
|
topic is ``STDIO'', the application may wish to refuse the connection.
|
|
|
|
Under UNIX, when a server is created the OnAcceptConnection message is
|
|
|
|
always sent for standard input and output, but in the context of DDE
|
|
|
|
messages it doesn't make a lot of sense.
|
|
|
|
|