[fpc-pascal] lNet and TCP packet length
Malcolm Poole
malcolm at lingua-z.co.uk
Wed Feb 1 19:33:58 CET 2012
I'm working on a client/server project which involves sending SQL
commands from server to client and vice versa.
I've been using the LTCP component for both the client and the server,
which have been working perfectly during testing on the same machine and
between different virtual machines, sending and receiving packets of
data several thousand bytes in length.
However, when connecting over ethernet or the internet there appears to
be a packet limit of 1036 bytes and any packets of data larger than this
are truncated. I assume this is to do with maximum permissible transport
units in the routers forming the connections and I was mistaken in
believing that the lNet TCP implementation would take care of breaking
the data down into transmissible packets and reassembling them at the
destination.
Before I set out to implement the procedures to do this myself, can
someone reassure me that this needs to be done and that I am not
re-inventing the wheel?
Malcolm
More information about the fpc-pascal
mailing list