[Pixil-devel] ask for help
[email protected] Tue, 24 Jan 2006 17:47:58 +0800
| Newsgroups | gmane.comp.web.viewml.devel |
|---|---|
| Message-ID | <OF8ABC78AC.2EEAEE5B-ON48257100.0031D80E-48257100.0035D436@skyworksinc.com> |
This is a multipart message in MIME format.
--===============1775388303==
Content-Type: multipart/alternative;
boundary="=_alternative 0035D42D48257100_="
This is a multipart message in MIME format.
--=_alternative 0035D42D48257100_=
Content-Type: text/plain; charset="US-ASCII"
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
--=_alternative 0035D42D48257100_=
Content-Type: text/html; charset="US-ASCII"
<br><font size=2 face="sans-serif">Hello,</font>
<br>
<br><font size=2 face="sans-serif"> my name is tao and I am
application engineer in skyworks china, i have download the pixil-1.2.3
and read its code,</font>
<br><font size=2 face="sans-serif">there are one thing confuse me in function
client_WaitForServer(...) in client.c, </font>
<br><font size=2 face="sans-serif"> during wait for special
type message,it will queue all other type message, after successly receive
the specail</font>
<br><font size=2 face="sans-serif">type message, it will do write zero
length data into sock if queued other type message, </font>
<br>
<br><font size=2 face="sans-serif"> write(sock,
0, 0);</font>
<br>
<br><font size=2 face="sans-serif">i don't understant the the effect of
this write operation, i will appreciate any comments,</font>
<br>
<br><font size=2 face="sans-serif">static int</font>
<br><font size=2 face="sans-serif">client_WaitForServer(int sock, int packet_type,
pkt_buff_t **pkt, int timeout) </font>
<br><font size=2 face="sans-serif">{</font>
<br><font size=2 face="sans-serif"> do{</font>
<br><font size=2 face="sans-serif"> ...</font>
<br><font size=2 face="sans-serif"> if(qcount)</font>
<br><font size=2 face="sans-serif">
write(sock,0,0);</font>
<br><font size=2 face="sans-serif">
return (0);</font>
<br><font size=2 face="sans-serif"> ...</font>
<br><font size=2 face="sans-serif"> }</font>
<br><font size=2 face="sans-serif">} </font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">thanks you very much, in advance!</font>
<br>
<br><font size=2 face="sans-serif">regards</font>
<br><font size=2 face="sans-serif">tao</font>
--=_alternative 0035D42D48257100_=--
--===============1775388303==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Pixil-devel mailing list
[email protected]
http://www.pixil.org/cgi-bin/mailman/listinfo/pixil-devel
--===============1775388303==--