rfb-protocol

TCP/IP using Ada Sockets: How to correctly finish a packet? [duplicate]

老子叫甜甜 提交于 2020-01-06 06:56:19
问题 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