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.
is my thinking correct?
-
- User
- Posts: 41
- Joined: Wed Dec 29, 2004 11:39 am
- Location: Belgium
-
- Addict
- Posts: 2344
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
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?
mmmm anybody knows it there's some support for linux native berkely socket io?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )