]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/tcpservr.tex
Removed some TODOs in the Latex docs; changed wxMotif wxClipboard to match
[wxWidgets.git] / docs / latex / wx / tcpservr.tex
CommitLineData
e2a6f233
JS
1\section{\class{wxTCPServer}}\label{wxtcpserver}
2
3A wxTCPServer object represents the server part of a client-server conversation.
4It emulates a DDE-style protocol, but uses TCP/IP which is available on most platforms.
5
6A DDE-based implementation for Windows is available using \helpref{wxDDEServer}{wxddeserver}.
7
8\wxheading{Derived from}
9
10wxServerBase\\
11\helpref{wxObject}{wxobject}
12
13\wxheading{See also}
14
15\helpref{wxTCPClient}{wxtcpclient}, \helpref{wxTCPConnection}{wxtcpconnection}, \helpref{IPC overview}{ipcoverview}
16
17\latexignore{\rtfignore{\wxheading{Members}}}
18
19\membersection{wxTCPServer::wxTCPServer}
20
21\func{}{wxTCPServer}{\void}
22
23Constructs a server object.
24
25\membersection{wxTCPServer::Create}
26
27\func{bool}{Create}{\param{const wxString\& }{service}}
28
29Registers the server using the given service name. Under Unix, the
30string must contain an integer id which is used as an Internet port
31number. FALSE is returned if the call failed (for example, the port
32number is already in use).
33
34\membersection{wxTCPServer::OnAcceptConnection}\label{wxtcpserveronacceptconnection}
35
36\func{virtual wxConnectionBase *}{OnAcceptConnection}{\param{const wxString\& }{topic}}
37
38When a client calls {\bf MakeConnection}, the server receives the
39message and this member is called. The application should derive a
40member to intercept this message and return a connection object of
41either the standard wxTCPConnection type, or of a user-derived type. If the
42topic is ``STDIO'', the application may wish to refuse the connection.
43Under Unix, when a server is created the OnAcceptConnection message is
44always sent for standard input and output.
45