Difference between revisions of "TWSocketServer"

From Overbyte
Jump to navigation Jump to search
 
Line 11: Line 11:
  
 
{|  
 
{|  
| width="90" valign="top" | [[TName.Name | Name]] |||| Short description
+
| valign="top" | [[TWSocketServer.Addr | Addr]] ||||
|-  
+
|-
| valign="top" | [[TName.SecondName | SecondName]] |||| Long description of this property. I can take several lines to describe a property. This is a property with a long description. The description is indeed quite long.
+
| valign="top" | [[TWSocketServer.Banner | Banner]] ||||
 +
|-
 +
| valign="top" | [[TWSocketServer.BannerTooBusy | BannerTooBusy]] ||||
 +
|-
 +
| valign="top" | [[TWSocketServer.Client | Client]] ||||
 +
|-
 +
| valign="top" | [[TWSocketServer.ClientClass | ClientClass]] ||||
 +
|-
 +
| valign="top" | [[TWSocketServer.ClientCount | ClientCount]] ||||
 +
|-
 +
| valign="top" | [[TWSocketServer.Handle | Handle]] ||||
 +
|-
 +
| valign="top" | [[TWSocketServer.HSocket | HSocket]] ||||
 +
|-
 +
| valign="top" | [[TWSocketServer.LastError | LastError]] ||||
 +
|-
 +
| valign="top" | [[TWSocketServer.ListenBacklog | ListenBacklog]] ||||
 +
|-
 +
| valign="top" | [[TWSocketServer.MaxClients | MaxClients]] ||||
 +
|-
 +
| valign="top" | [[TWSocketServer.Port | Port]] ||||
 +
|-
 +
| width="90" valign="top" | [[TWSocketServer.PortNum | PortNum]] ||||
 +
|-
 +
| valign="top" | [[TWSocketServer.Proto | Proto]] ||||
 +
|-
 +
| valign="top" | [[TWSocketServer.State | State]] ||||
 
|}
 
|}
  

Revision as of 14:04, 19 February 2006

Overview

TWSocketServer will normally be used to listen on a given tcp port. When a client connect, it will instanciate a new TWSocketClient component to handle communication with client. Normally you will derive your own component from TWSocketClient to add private data and methods to handle it. You tell TWSocketServer which component it has to instanciate using ClientClass property. You have to initialize instances from OnClientConnect event handler. TWSocketServer maintain a list of connected clients. You can access it using Client[] indexed property and ClientCount property.

Since it is derrived from TWSocket, lots of properties and events are unused and not listed here. Properties and events that have a meaning in both server or client component are listed here.

Properties

Addr
Banner
BannerTooBusy
Client
ClientClass
ClientCount
Handle
HSocket
LastError
ListenBacklog
MaxClients
Port
PortNum
Proto
State

Methods

Name Short description
Name Short description

Events

Name Short description
Name Short description

How to

Title