t***@skyworksinc.com
2006-01-24 09:47:58 UTC
Hello,
my name is tao and I am application engineer in skyworks china, i have
download the pixil-1.2.3 and read its code,
there are one thing confuse me in function client_WaitForServer(...) in
client.c,
during wait for special type message,it will queue all other type
message, after successly receive the specail
type message, it will do write zero length data into sock if queued other
type message,
write(sock, 0, 0);
i don't understant the the effect of this write operation, i will
appreciate any comments,
static int
client_WaitForServer(int sock, int packet_type, pkt_buff_t **pkt, int
timeout)
{
do{
...
if(qcount)
write(sock,0,0);
return (0);
...
}
}
thanks you very much, in advance!
regards
tao
my name is tao and I am application engineer in skyworks china, i have
download the pixil-1.2.3 and read its code,
there are one thing confuse me in function client_WaitForServer(...) in
client.c,
during wait for special type message,it will queue all other type
message, after successly receive the specail
type message, it will do write zero length data into sock if queued other
type message,
write(sock, 0, 0);
i don't understant the the effect of this write operation, i will
appreciate any comments,
static int
client_WaitForServer(int sock, int packet_type, pkt_buff_t **pkt, int
timeout)
{
do{
...
if(qcount)
write(sock,0,0);
return (0);
...
}
}
thanks you very much, in advance!
regards
tao