Defines | Functions

psock.c File Reference

#include <stdio.h>
#include <string.h>
#include "../proj/cli/debug.h"
#include "uipopt.h"
#include "psock.h"
#include "uip.h"

Go to the source code of this file.

Defines

#define STATE_NONE   0
#define STATE_ACKED   1
#define STATE_READ   2
#define STATE_BLOCKED_NEWDATA   3
#define STATE_BLOCKED_CLOSE   4
#define STATE_BLOCKED_SEND   5
#define STATE_DATA_SENT   6
#define BUF_NOT_FULL   0
#define BUF_NOT_FOUND   0
#define BUF_FULL   1
#define BUF_FOUND   2

Functions

 PT_THREAD (psock_send(register struct psock *s, const char *buf, unsigned int len))
 PT_THREAD (psock_generator_send(register struct psock *s, unsigned short(*generate)(void *), void *arg))
u16_t psock_datalen (struct psock *psock)
char psock_newdata (struct psock *s)

Define Documentation

#define BUF_FOUND   2

Definition at line 73 of file psock.c.

#define BUF_FULL   1

Definition at line 66 of file psock.c.

#define BUF_NOT_FOUND   0

Definition at line 59 of file psock.c.

#define BUF_NOT_FULL   0

Definition at line 58 of file psock.c.

#define STATE_ACKED   1

Definition at line 46 of file psock.c.

#define STATE_BLOCKED_CLOSE   4

Definition at line 49 of file psock.c.

#define STATE_BLOCKED_NEWDATA   3

Definition at line 48 of file psock.c.

#define STATE_BLOCKED_SEND   5

Definition at line 50 of file psock.c.

#define STATE_DATA_SENT   6

Definition at line 51 of file psock.c.

#define STATE_NONE   0

Definition at line 45 of file psock.c.

#define STATE_READ   2

Definition at line 47 of file psock.c.


Function Documentation

PT_THREAD ( psock_generator_send(register struct psock *s,unsigned short(*generate)(void *), void *arg)   ) 

Definition at line 222 of file psock.c.

PT_THREAD ( psock_send(register struct psock *s, const char *buf,unsigned int len)   ) 

Definition at line 179 of file psock.c.