| written by Ponche on Mar 02, 2004 12:22 |
 | |  | | Well i have a little question about Network feature in Lino. The network notes in the node folder says that when you do a NETREAD or a NETSEND and the data you are transmiting is too much, then you must divide data into "packets". My question is: how many data is needed for this procedures to fail? Let's say i want to send 1000 bytes per time. There should be any problem with this data size? Or it depends? | |  | |  |
|
| written by Alex on Mar 02, 2004 12:26 |
 | |  | | It's a good question. The value is based not only on the OS implementation of sockets, or on the RTM. It seems to also depend on the line, I think I read someting about that on MSDN. However, if I were you I'd try running a test, to see when it fails. | |  | |  |
|
 | |  | | IIRC, if you're transmitting over a standard Ethernet network, the MTU (maximum transmission unit, or something like that) is 1500 - i.e. you can transmit packets of up to 1,500 bytes (minus the overhead, about 50 bytes) at a time. | |  | |  |
|
| sun + black hole = fwoosh! |
|
   | |  | | IIRC, winsock should be dividing it into separate packets itself. Unless you've told it NOT to, (with flags and such on the socket)... | |  | |  |
|
|