Main Page | Modules | Data Structures | File List | Data Fields | Globals | Examples

psock.h File Reference


Detailed Description

Protosocket library header file.

Author:
Adam Dunkels <adam@sics.se>

#include "pt.h"
#include "uipbuf.h"
#include "memb.h"

Go to the source code of this file.

Data Structures

struct  psock
 The representation of a protosocket. More...


Defines

#define PSOCK_INIT(psock, buffer, buffersize)
 Initialize a protosocket.

#define PSOCK_BEGIN(psock)
 Start the protosocket protothread in a function.

#define PSOCK_SEND(psock, data, datalen)
 Send data.

#define PSOCK_CLOSE(psock)
 Close a protosocket.

#define PSOCK_READTO(psock, c)
 Read data up to a specified character.

#define PSOCK_DATALEN(psock)
 The length of the data that was previously read.

#define PSOCK_EXIT(psock)
 Exit the protosocket's protothread.

#define PSOCK_CLOSE_EXIT(psock)
 Close a protosocket and exit the protosocket's protothread.

#define PSOCK_NEWDATA(psock)
 Check if new data has arrived on a protosocket.

#define PSOCK_WAIT_UNTIL(psock, condition)
 Wait until a condition is true.


Generated on Wed Jul 6 01:19:02 2005 for Contiki/ESB by doxygen 1.3.6