wxddeservera wxddeserver object represents the server part of a client-server dde (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 wxtcpserver. derived from wxserverbase include files <wx/dde.h> see also wxddeclient, wxddeconnection, ipc overview members
wxddeserver::wxddeserver
wxddeserver::wxddeserverwxddeserver() constructs a server object.
wxddeserver::createbool create(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 number. false is returned if the call failed (for example, the port number is already in use).
wxddeserver::onacceptconnectionvirtual wxconnectionbase * onacceptconnection(const wxstring& topic) when a client calls 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.
|