eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'ComancheNetService':

Home

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

Class: ComancheNetService


Inheritance:

   Object
   |
   +--HTTPService
      |
      +--ComancheService
         |
         +--ComancheNetService

Package:
stx:goodies/webServer/comanche
Category:
Net-Communication-HTTP-Comanche-Mimicry
Version:
rev: 1.10 date: 2018/04/26 10:48:26
user: cg
file: ComancheNetService.st directory: goodies/webServer/comanche
module: stx stc-classLibrary: comanche

Description:


Kom48 (Comanche beta 4.8)
bolot 4/2/2001 18:44

Comment from kom46:
    I'm a service that sets up a ComancheServer to listen on a given port.  
    I use a protocol adaptor to adapts TCP/IP based protocol conversations into message based conversations.


protocolAdaptor     an object that supports the NetworkProtocolAdaptor class interface 
                    (specifically, I send it #processSocket:target:).

comancheServer      an instance of a ComancheServer that handles all the details of setting up to listen for sockets 
                    on a given port.


Class protocol:

defaults
o  defaultProtocolAdaptor

o  defaultServerClass

instance creation
o  named: aString onPort: portNumber

o  named: aString onPort: portNumber priority: priorityNum

o  named: aString onPort: portNumber priority: priorityNum protocolAdaptor: aPA

queries
o  isAbstract


Instance protocol:

accessing
o  comancheServer

o  module
Answer a ComancheModule that will process network
requests for this ComancheNetService

o  module: aKOMModule

o  portNumber

o  priority

o  protocolAdaptor
Answer the NetworkProtocolAdaptor that is being used to
translate Socket based conversations into message based ones.

conversation
o  serve: aSocket
Provided for TCP/IP conversations. Works in conjunction with
a ComancheServer. Services that do not serve TCP/IP connections
do not need to implement this method.

defaults
o  defaultProtocolAdaptor

o  defaultServerClass

initialization
o  initializeOnPort: portNum priority: priorityLevel protocolAdaptor: aPA

o  initializeOnPort: portNum priority: priorityLevel protocolAdaptor: aPA serverClass: serverClass

mimicry
o  setupModule

printing
o  printOn: aStream

starting and stopping
o  start
(comment from inherited method)
Subclasses may override this method to take whatever
is necessary to start this service

o  stop
(comment from inherited method)
Subclasses may override this method to take whatever
is necessary to start this service



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 30 Dec 2024 17:57:37 GMT