Next: simxlib
Up: simsocket
Previous: serverswitch
SocketBasics
NAME
socketbasics - abstract superclass, open/close aspects of
sockets
DESCRIPTION
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.
EXAMPLES
See the users manual in simioprocess.ps
AUTHOR
Boris Magnusson, Lund Institute of Technology.
DETAILED INTERFACE
class SocketBasics;
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.;
Kind: Abstract.;
Subclasses: SocketIO ClientSocket/ServerSocket
SocketSwitch;
Init: see subclasses.;
Sequencing: (IsOpen / Open (GetChannelNo/<subclass ops>)*
Close)*;
Intentions: Subclasses must implement an Open procedure.;
OPERATIONS
Close
Boolean procedure Close;
Close - close the channel represented by this Socket-object.
Returns True on success, false on failure.
GetChannelNo
integer procedure GetChannelNo;
Return the UNIX channel number of an open Socket
IsOpen
Boolean procedure IsOpen;
Return True if this Socket is currently open