version 1.6 | | version 1.7 |
---|
| | |
| | |
/* | | /* |
* static char *rcsid_sockets_c = | | * static char *rcsid_sockets_c = |
* "$Id: lowlevel.c,v 1.6 2001/04/06 19:08:08 michtoen Exp $"; | | * "$Id: lowlevel.c,v 1.7 2003/09/13 05:02:14 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
sl->buf[sl->len++] = data & 0xff; | | sl->buf[sl->len++] = data & 0xff; |
} | | } |
| | |
| | void SockList_AddInt64(SockList *sl, uint64 data) |
| | { |
| | sl->buf[sl->len++]= (data>>56)&0xff; |
| | sl->buf[sl->len++]= (data>>48)&0xff; |
| | sl->buf[sl->len++]= (data>>40)&0xff; |
| | sl->buf[sl->len++]= (data>>32)&0xff; |
| | |
| | sl->buf[sl->len++]= (data>>24)&0xff; |
| | sl->buf[sl->len++]= (data>>16)&0xff; |
| | sl->buf[sl->len++]= (data>>8)&0xff; |
| | sl->buf[sl->len++] = data & 0xff; |
| | } |
| | |
/* Basically does the reverse of SockList_AddInt, but on | | /* Basically does the reverse of SockList_AddInt, but on |
* strings instead. Same for the GetShort, but for 16 bits. | | * strings instead. Same for the GetShort, but for 16 bits. |
*/ | | */ |