Indy 9
|
procedure SendError(UDPBase: TIdUDPBase; APeerIP: string; const APort: Integer; const ErrNumber: Word; ErrorString: string); overload; procedure SendError(UDPClient: TIdUDPClient; const ErrNumber: Word; ErrorString: string); overload; procedure SendError(UDPBase: TIdUDPBase; APeerIP: string; const APort: Integer; E: Exception); overload; procedure SendError(UDPClient: TIdUDPClient; E: Exception); overload;
When the Exception variant is used, the text of the error message will contain Exception.Message.
When the TIdUDPClient variant is used, the Host and Port properties of UDPClient are used to send the error message.