All pastes #950360 Raw Edit

Stuff

public text v1 · immutable
·published 2008-03-20 14:55 UTC
rendered paste body
void packet_init(packet *p) {
    p->ID = -1;
    p->start = -1;
    p->end = -1; 
    p->done = 0; 
}
void packet_set(packet* p, int msgID, int byteStart, int byteEnd) {
        p->ID = msgID; 
        p->start = byteStart; 
        p->end = byteEnd; 
    }