comparison buffer.h @ 179:161557a9dde8

* fix longstanding bug with connections being closed on failure to connect to auth socket (server) * differentiate between get_byte and get_bool * get rid of some // comments * general tidying
author Matt Johnston <matt@ucc.asn.au>
date Sun, 13 Mar 2005 13:58:14 +0000
parents fe6bca95afa7
children c3f2ec71e3d4 76097ec1a29a
comparison
equal deleted inserted replaced
178:058cc7892636 179:161557a9dde8
48 void buf_incrlen(buffer* buf, unsigned int incr); 48 void buf_incrlen(buffer* buf, unsigned int incr);
49 void buf_setpos(buffer* buf, unsigned int pos); 49 void buf_setpos(buffer* buf, unsigned int pos);
50 void buf_incrpos(buffer* buf, int incr); /* -ve is ok, to go backwards */ 50 void buf_incrpos(buffer* buf, int incr); /* -ve is ok, to go backwards */
51 void buf_incrwritepos(buffer* buf, unsigned int incr); 51 void buf_incrwritepos(buffer* buf, unsigned int incr);
52 unsigned char buf_getbyte(buffer* buf); 52 unsigned char buf_getbyte(buffer* buf);
53 unsigned char buf_getbool(buffer* buf);
53 void buf_putbyte(buffer* buf, unsigned char val); 54 void buf_putbyte(buffer* buf, unsigned char val);
54 unsigned char* buf_getptr(buffer* buf, unsigned int len); 55 unsigned char* buf_getptr(buffer* buf, unsigned int len);
55 unsigned char* buf_getwriteptr(buffer* buf, unsigned int len); 56 unsigned char* buf_getwriteptr(buffer* buf, unsigned int len);
56 unsigned char* buf_getstring(buffer* buf, unsigned int *retlen); 57 unsigned char* buf_getstring(buffer* buf, unsigned int *retlen);
57 void buf_eatstring(buffer *buf); 58 void buf_eatstring(buffer *buf);