Exemple #1
0
int client_available (client_t *c)
{
    if (c->sock != MAX_SOCK_NUM)
        return w5100_getRXReceivedSize (c->sock);
    return 0;
}
Exemple #2
0
/*
 * Is data available in rx buffer?
 * Returns 0 if no, number of available bytes if yes.
 * returned value includes 8 byte UDP header!
 */
unsigned udp_available (udp_t *u)
{
    return w5100_getRXReceivedSize (u->sock);
}