class SOCKET_SERVER_JOB
Summary
Overview
creation features
exported features
The following features are inherited from JOB:
  • prepare (events: EVENTS_SET)
    use ready to descibe condition that make this job ready to continue.
  • is_ready (events: EVENTS_SET): BOOLEAN
    check if this job is ready to continue his work
  • continue
    Continue to do the job The work to do has to be small work and non blocking, it will continue on next call
  • restart
    Configure the job like the initial state.
when_connect (handler: PROCEDURE[TUPLE 1[SOCKET_INPUT_OUTPUT_STREAM]])
effective procedure
What to do when connection happens (i.e. some client tries to connect to the server).
when_shutdown (handler: PROCEDURE[TUPLE 1[SOCKET_SERVER_JOB]])
effective procedure
Should be more accurately be called when_shutdown_or_halt.
shutdown
effective procedure
Wait for the connections to finish, then stop the server.
halt
effective procedure
done: BOOLEAN
writable attribute
done returns True when the job is finished.
prepare (events: EVENTS_SET)
effective procedure
use ready to descibe condition that make this job ready to continue.
is_ready (events: EVENTS_SET): BOOLEAN
effective function
check if this job is ready to continue his work
continue
effective procedure
Continue to do the job The work to do has to be small work and non blocking, it will continue on next call
restart
effective procedure
Configure the job like the initial state.
priority: INTEGER_32
writable attribute
Never change priority after job inserted in loop_item.
infix "<" (other: JOB): BOOLEAN
effective function