UdpClose

The procedure shown in Figure 1 closes the UDP socket specified in the ConnIndex field. All incoming datagrams on this connection are discarded.

Figure 1. UdpClose example
   procedure UdpClose
            (
                 ConnIndex: ConnectionIndexType;
        var    ReturnCode: CallReturnCodeType
            );
            external;
Parameter
Description
ConnIndex
The ConnIndex value returned from UdpOpen.
ReturnCode
Indicates success or failure of a call. Possible return values are:
  • OK
  • NOsuchCONNECTION
  • NOTyetBEGUN
  • TCPipSHUTDOWN
  • SOFTWAREerror

For a description of Pascal return codes, see Table 1.