Version: 2.9.4
Public Member Functions
wxTCPServer Class Reference

#include </home/zeitlin/src/wx/github/interface/wx/sckipc.h>

Inheritance diagram for wxTCPServer:

Detailed Description

A wxTCPServer object represents the server part of a client-server conversation.

It emulates a DDE-style protocol, but uses TCP/IP which is available on most platforms.

A DDE-based implementation for Windows is available using wxDDEServer.

Library:  wxNet
Category:  Networking
参照:
wxTCPClient, wxTCPConnection, Interprocess Communication

Public Member Functions

 wxTCPServer ()
 Constructs a server object.
virtual bool Create (const wxString &service)
 Registers the server using the given service name.
virtual wxConnectionBaseOnAcceptConnection (const wxString &topic)
 When a client calls MakeConnection, the server receives the message and this member is called.

List of all members.


Constructor & Destructor Documentation

wxTCPServer::wxTCPServer ( )

Constructs a server object.


Member Function Documentation

virtual bool wxTCPServer::Create ( const wxString service) [virtual]

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).

virtual wxConnectionBase* wxTCPServer::OnAcceptConnection ( const wxString topic) [virtual]

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 wxTCPConnection 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.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines