eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'AbstractTCPSocketServer':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: AbstractTCPSocketServer


Inheritance:

   Object
   |
   +--AbstractTCPSocketServer
      |
      +--FTPServer

Package:
stx:goodies/communication
Category:
Net-Communication
Version:
rev: 1.20 date: 2022/09/12 09:41:15
user: stefan
file: AbstractTCPSocketServer.st directory: goodies/communication
module: stx stc-classLibrary: communication

Description:


common abstract superclass for TCP socket servers
(like FTPServer and others).
Only handles connection setup and session startup.
Does not implement any concrete protocol - this must be done in the session instance.




    FTPServer startOnPort:12345.

    (FTPServer forPort:12345)
        sessionClass:SmalltalkFTPSession;
        start

copyright

COPYRIGHT (c) 2003 by eXept Software AG All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

Class protocol:

instance creation
o  defaultPort

** This method must be redefined in concrete classes (subclassResponsibility) **

o  forPort: aPort
return a server for the given port

Usage example(s):

     (FTPServer forPort:12387) start

o  start
start a server on the default port (21).
Notice: this is a priviledged port, not normally accessible to users.

Usage example(s):

     FTPServer start

o  startOnPort: aPort
start a server on the given port

Usage example(s):

     FTPServer startOnPort:2121

queries
o  isAbstract
Return if this class is an abstract class.
True is returned here for myself only; false for subclasses.
Abstract subclasses must redefine this again.


Instance protocol:

accessing
o  activeSessions

o  defaultSessionClass

** This method must be redefined in concrete classes (subclassResponsibility) **

o  port: aPortNumber

o  sessionClass

o  sessionClass: something

o  singleConnectionOnly

o  singleConnectionOnly: aBoolean
Modified (format): / 07-04-2017 / 15:09:41 / cg

debugging
o  log: aMessage
Verbose := true
Verbose := false

initialization
o  initialize
(comment from inherited method)
just to ignore initialize to objects which do not need it

queries
o  isServing

serving
o  servePort: aPort
start a TCP-Server on a port

o  start
start a TCP-Server

o  stop
start a TCP-Server

serving-private
o  addToActiveSessions: aSession

o  removeFromActiveSessions: aSession

o  serverLoop



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 17:23:49 GMT