DSP dspService()
syntax: |
dsp.dspService() |
return: |
boolean - A value indicating whether the connection is still open.
|
description: |
This is the main server-side function. Although it can be used by any DSP object, it is intended to be the server side of the client-server model. When called, it will wait until an incoming packet is received and then service that packet appropriately. The method will return false if the packet received was a close command, in which case the connection has been closed, and an explicit call to dspClose is not necessary. It is designed to be called repeatedly until the connection is closed.
|
see: |
#link <sedsp>
|
example: |
// Assume 'connection' is a valid connection while( connection.dspService() ) ; // At this point, the connection has been // successfully closed |