version 1.8 | | version 1.9 |
---|
| | |
| | |
/* | | /* |
* static char *rcsid_sockets_c = | | * static char *rcsid_sockets_c = |
* "$Id: lowlevel.c,v 1.8 2003/12/02 18:51:44 ryo_saeba Exp $"; | | * "$Id: lowlevel.c,v 1.9 2003/12/14 16:28:47 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
void SockList_AddInt64(SockList *sl, uint64 data) | | void SockList_AddInt64(SockList *sl, uint64 data) |
{ | | { |
sl->buf[sl->len++]= (data>>56)&0xff; | | sl->buf[sl->len++]= ( char )( (data>>56)&0xff ); |
sl->buf[sl->len++]= (data>>48)&0xff; | | sl->buf[sl->len++]= ( char )( (data>>48)&0xff ); |
sl->buf[sl->len++]= (data>>40)&0xff; | | sl->buf[sl->len++]= ( char )( (data>>40)&0xff ); |
sl->buf[sl->len++]= (data>>32)&0xff; | | sl->buf[sl->len++]= ( char )( (data>>32)&0xff ); |
| | |
sl->buf[sl->len++]= (data>>24)&0xff; | | sl->buf[sl->len++]= ( char )( (data>>24)&0xff ); |
sl->buf[sl->len++]= (data>>16)&0xff; | | sl->buf[sl->len++]= ( char )( (data>>16)&0xff ); |
sl->buf[sl->len++]= (data>>8)&0xff; | | sl->buf[sl->len++]= ( char )( (data>>8)&0xff ); |
sl->buf[sl->len++] = data & 0xff; | | sl->buf[sl->len++] =( char )( data & 0xff ); |
} | | } |
| | |
/* Basically does the reverse of SockList_AddInt, but on | | /* Basically does the reverse of SockList_AddInt, but on |