is my thinking correct?

Just starting out? Need help? Post your questions and find answers here.
netmon
User
User
Posts: 12
Joined: Sun Jul 27, 2003 4:29 pm

is my thinking correct?

Post 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.
dmoc
Enthusiast
Enthusiast
Posts: 739
Joined: Sat Apr 26, 2003 12:40 am

Post 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?
The_CodeMaster
User
User
Posts: 41
Joined: Wed Dec 29, 2004 11:39 am
Location: Belgium

Post 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.
DarkDragon
Addict
Addict
Posts: 2344
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

There is a UDP Userlib. I think you can download it at purearea.net
bye,
Daniel
The_CodeMaster
User
User
Posts: 41
Joined: Wed Dec 29, 2004 11:39 am
Location: Belgium

Post by The_CodeMaster »

thx
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post 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?
( 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... )
Post Reply