UDPClose Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
UDPClose Function
C
void UDPClose(
    UDP_SOCKET s
);
Description

UDP_SOCKET UDPOpen(UDP_PORT localPort, NODE_INFO *remoteNode, UDP_PORT remotePort); 

Closes a UDP socket and frees the handle. Call this function to release a socket and return it to the pool for use by future communications.

Preconditions

UDPInit() must have been previously called.

Parameters
Parameters 
Description 
The socket handle to be released. If an illegal handle value is provided, the function safely does nothing. 
Returns

None

Remarks

This function does not affect the previously designated active socket.

Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.