socketbasics - abstract superclass, open/close aspects of
This abstract superclass provides the Open/Close operations
for its subclasses. Here is also protected interfacesfor
Socket-related C-routines used to implement its subclasses.
See the users manual in simioprocess.ps
Boris Magnusson, Lund Institute of Technology.
This class contains a collection of c-routine interfaces
useful when implementing Client/Server communication using
Sockets. This class is abstract, its routines are intended
to be used by subclasses only, they are therefor declared
protected. Super: none.;
Subclasses: SocketIO ClientSocket/ServerSocket
Init: see subclasses.;
Sequencing: (IsOpen / Open (GetChannelNo/<subclass ops>)*
Intentions: Subclasses must implement an Open procedure.;
Boolean procedure Close;
Close - close the channel represented by this Socket-object.
Returns True on success, false on failure.
integer procedure GetChannelNo;
Return the UNIX channel number of an open Socket
Boolean procedure IsOpen;
Return True if this Socket is currently open