Rejects the ongoing communication request.
After calling one of the
Net... communication methods, asynchronous reading or writing occurs and after its termination the corresponding
EndNet... event is triggered. By means of the
NetReset method, it is possible to perform the so-called request discard, it means that the event triggering for the discarded request is cancelled. Thus, the application is not passed the value of the communication result or possibly read values, although physically the communication takes place.
The
NetReset method discards such requests that were specified by methods
Net... with the same
Param parameter. It means that communication requests having the same
Param parameter are always discarded at once. If independent discarding is required, then the requests must have different
Param parameters.
The value
0 (zero) of the
Param parameter causes all communication requests to be dropped.