</source>
 
</source>
   −
 
+
===Some Important variables ===
<!--static uint16_t buflen, bufptr;
+
<source lang="c">
 +
static uint16_t buflen, bufptr;
 
static uint8_t hdrptr;
 
static uint8_t hdrptr;
 +
</source>
 +
buflen refers to the size of the packet in the packetbuf.
 +
bufptr points to the last character or element of the packet in the buffer.
 +
hdrptr point to the end of the header of a packet.
   Exception encountered, of type "Error"