|
Class: AbstractTCPSocketServer
Object
|
+--AbstractTCPSocketServer
|
+--FTPServer
- Package:
- stx:goodies/communication
- Category:
- Net-Communication
- Version:
- rev:
1.14
date: 2019/06/28 06:48:31
- user: cg
- file: AbstractTCPSocketServer.st directory: goodies/communication
- module: stx stc-classLibrary: communication
- Author:
- Claus Atzkern
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
FTPServer
FTPSession
instance creation
-
defaultPort
-
-
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:12387
|
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
-
-
port: aPortNumber
-
-
sessionClass
-
-
sessionClass: something
-
-
singleConnectionOnly
-
-
singleConnectionOnly: aBoolean
-
Modified (format): / 07-04-2017 / 15:09:41 / cg
debugging
-
log: aMessage
-
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
-
FTPServer start.
|