Re: ebnc patch
Philip S Tellis <[email protected]> Sun, 21 Mar 2004 14:57:29 +0530 (IST)
| Newsgroups | gmane.network.everybuddy.devel |
|---|---|
| Message-ID | <[email protected]> |
Sometime Today, A. Craig West assembled some asciibets to say: > It appears that we do much of our socket communication, particularly > when communicating with GUI's, using read() and write() calls, often > with separate write calls for individual bytes. I'm not certain, but I See how libyahoo2 does this. All functions that need to send data to the network call a send_data/send_packet function, which writes the data to a buffer. A socket handler (select/poll/etc) calls a write_ready callback when the socket is ready to receive data. At this point, the top 1024 bytes of the buffer are sent and the buffer is shortened. I believe TCP takes care of splitting the 1024 bytes into smaller packets if necessary. Same for read. -- Machines have less problems. I'd like to be a machine. -- Andy Warhol