|
Class: AbstractTCPSocketServer
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
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
copyrightCOPYRIGHT (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.
instance creation
-
defaultPort
-
** This method must be redefined in concrete classes (subclassResponsibility) **
-
forPort: aPort
-
return a server for the given port
Usage example(s):
(FTPServer forPort:12387) start
|
-
start
-
start a server on the default port (21).
Notice: this is a priviledged port, not normally accessible to users.
Usage example(s):
-
startOnPort: aPort
-
start a server on the given port
Usage example(s):
FTPServer startOnPort:2121
|
queries
-
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.
accessing
-
activeSessions
-
-
defaultSessionClass
-
** This method must be redefined in concrete classes (subclassResponsibility) **
-
port: aPortNumber
-
-
sessionClass
-
-
sessionClass: something
-
-
singleConnectionOnly
-
-
singleConnectionOnly: aBoolean
-
Modified (format): / 07-04-2017 / 15:09:41 / cg
debugging
-
log: aMessage
-
Verbose := true
Verbose := false
initialization
-
initialize
-
(comment from inherited method)
just to ignore initialize to objects which do not need it
queries
-
isServing
-
serving
-
servePort: aPort
-
start a TCP-Server on a port
-
start
-
start a TCP-Server
-
stop
-
start a TCP-Server
serving-private
-
addToActiveSessions: aSession
-
-
removeFromActiveSessions: aSession
-
-
serverLoop
-
|