TCP/IP using Ada Sockets: How to correctly finish a packet? [duplicate]
问题 This question already has answers here : TCP Connection Seems to Receive Incomplete Data (5 answers) Closed 3 months ago . I'm attempting to implement the Remote Frame Buffer protocol using Ada's Sockets library and I'm having trouble controlling the length of the packets that I'm sending. I'm following the RFC 6143 specification (https://tools.ietf.org/pdf/rfc6143.pdf), see comments in the code for section numbers... -- Section 7.1.1 String'Write (Comms, Protocol_Version); Put_Line ("Server