ddeservr.tex

来自「很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.」· TEX 代码 · 共 52 行

TEX
52
字号
\section{\class{wxDDEServer}}\label{wxddeserver}A wxDDEServer object represents the server part of a client-server DDE(Dynamic Data Exchange) conversation.This DDE-based implementation isavailable on Windows only, but a platform-independent, socket-based versionof this API is available using \helpref{wxTCPServer}{wxtcpserver}.\wxheading{Derived from}wxServerBase\wxheading{Include files}<wx/dde.h>\wxheading{See also}\helpref{wxDDEClient}{wxddeclient}, \helpref{wxDDEConnection}{wxddeconnection}, \helpref{IPC overview}{ipcoverview}\latexignore{\rtfignore{\wxheading{Members}}}\membersection{wxDDEServer::wxDDEServer}\label{wxddeserverctor}\func{}{wxDDEServer}{\void}Constructs a server object.\membersection{wxDDEServer::Create}\label{wxddeservercreate}\func{bool}{Create}{\param{const wxString\& }{service}}Registers the server using the given service name. Under UNIX, thestring must contain an integer id which is used as an Internet portnumber. false is returned if the call failed (for example, the portnumber is already in use).\membersection{wxDDEServer::OnAcceptConnection}\label{wxddeserveronacceptconnection}\func{virtual wxConnectionBase *}{OnAcceptConnection}{\param{const wxString\& }{topic}}When a client calls {\bf MakeConnection}, the server receives themessage and this member is called. The application should derive amember to intercept this message and return a connection object ofeither the standard wxDDEConnection type, or of a user-derived type. If thetopic is ``STDIO'', the application may wish to refuse the connection.Under UNIX, when a server is created the OnAcceptConnection message isalways sent for standard input and output, but in the context of DDEmessages it doesn't make a lot of sense.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?