OWLNext 7.0
Borland's Object Windows Library for the modern age
|
The TDatagramSocket class, like the TStreamSocket class, is a subclass of the TSocket class, and it supports all the notification mechanisms that the TSocket class supports.
Thus, you can call StartRegularNotification() and SetNotificationSet() on a TDatagramSocket as well as on a TSocket.
The TDatagramSocket class subclasses all the DoXNotification() functions from the TSocket class. You can subclass TDatagramSocket and make your own virtual DoReadNotification(), DoWriteNotification(), etc functions to receive these notifications in the subclass and respond to them any way you want.