Given that you simply tag your query with “TCP”: Normally the appliance simply sends the information to the OS kernel utilizing
ship or comparable system calls. Delivering the information together with placing the information into packets are executed by the OS. The uncommon exceptions to this are consumer house TCP/IP stacks.
Notice that TCP is barely a byte stream and has no message semantics. Any message semantics (like request, response) are solely on the utility stage. There is no such thing as a assured 1:1 relation between a single
ship and a packet on the wire, i.e. the OS is free to separate a single
ship over a number of packets, mix a number of
ship in a single packet etc.