1 \section{\class{wxDDEServer
}}\label{wxddeserver
}
3 A wxDDEServer object represents the server part of a client-server DDE
4 (Dynamic Data Exchange) conversation.
6 This DDE-based implementation is
7 available on Windows only, but a platform-independent, socket-based version
8 of this API is available using
\helpref{wxTCPServer
}{wxtcpserver
}.
10 \wxheading{Derived from
}
14 \wxheading{Include files
}
20 \helpref{wxDDEClient
}{wxddeclient
},
\helpref{wxDDEConnection
}{wxddeconnection
},
\helpref{IPC overview
}{ipcoverview
}
22 \latexignore{\rtfignore{\wxheading{Members
}}}
24 \membersection{wxDDEServer::wxDDEServer
}
26 \func{}{wxDDEServer
}{\void}
28 Constructs a server object.
30 \membersection{wxDDEServer::Create
}
32 \func{bool
}{Create
}{\param{const wxString\&
}{service
}}
34 Registers the server using the given service name. Under UNIX, the
35 string must contain an integer id which is used as an Internet port
36 number. FALSE is returned if the call failed (for example, the port
37 number is already in use).
39 \membersection{wxDDEServer::OnAcceptConnection
}\label{wxddeserveronacceptconnection
}
41 \func{virtual wxConnectionBase *
}{OnAcceptConnection
}{\param{const wxString\&
}{topic
}}
43 When a client calls
{\bf MakeConnection
}, the server receives the
44 message and this member is called. The application should derive a
45 member to intercept this message and return a connection object of
46 either the standard wxDDEConnection type, or of a user-derived type. If the
47 topic is ``STDIO'', the application may wish to refuse the connection.
48 Under UNIX, when a server is created the OnAcceptConnection message is
49 always sent for standard input and output, but in the context of DDE
50 messages it doesn't make a lot of sense.