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

o  stop



ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Sat, 22 Sep 2018 07:55:02 GMT