Jump to main content

##

# NET_PRES_SocketDiscard Function

## C

    uint16_t NET_PRES_SocketDiscard(NET_PRES_SKT_HANDLE_T handle);

## Returns

The number of bytes that have been discarded from the RX buffer.

## Description

This function calls the transport layer's discard function, if it exists.

## Preconditions

A socket needs to have been opened by NET_PRES_SocketOpen

## Parameters

Parameters | Description
--- | ---
handle | The presentation layer socket handle.