Page 1 of 1

is my thinking correct?

Posted: Wed Dec 22, 2004 11:45 pm
by netmon
when reading data from the network, i should just read more bytes in then what my clients are sending.

For the longest time, i thought if i did that i would read into the next set of packets.

in theory i could let the packets que up 2k in bytes and if each packet sent was 10 bytes, i could read in 5k at a time and never touch the other packets. only the 10 bytes.

Posted: Thu Dec 23, 2004 12:09 am
by dmoc
Hmmm, I'm not sure that is correct. Packets are a low level protocol and should not effect how you read data at the application level. That's the whole point of the protocol stack, ie, to save you having to consider the actual mechanics. What makes you think this?

Posted: Wed Dec 29, 2004 1:05 pm
by The_CodeMaster
Does anybody know if you can also use the UDP-protocol. Because the manual says that it uses the TCP/IP stack only.

Posted: Wed Dec 29, 2004 1:09 pm
by DarkDragon
There is a UDP Userlib. I think you can download it at purearea.net

Posted: Wed Dec 29, 2004 1:33 pm
by The_CodeMaster
thx

Posted: Wed Dec 29, 2004 9:54 pm
by blueznl
you may consider using winsock directly, i haven't tried it with udp but with tcp, but it shouldn't be too difficult

mmmm anybody knows it there's some support for linux native berkely socket io?