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:
* obsolete *
Version:
rev: 1.12 date: 2018/01/19 22:28:17
user: cg
file: AbstractTCPSocketServer.st directory: goodies/communication
module: stx stc-classLibrary: communication
Author:
Claus Atzkern

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


Related information:

    FTPServer
    FTPSession

Class protocol:

instance creation
o  defaultPort

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:12387

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

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

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


Demonstration:


    FTPServer start.



ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Mon, 04 Aug 2025 14:18:07 GMT