Send/Receive TCP packets
![Post Post](./styles/FLATBOOTS/imageset/icon_post_target.gif)
Hi folks,
I need to send receive plain TCP data packets (one byte payload only) to a given IP at a given port.
I have found the UDP library and the corresponding classes, but nothing similar to TCP.
udp.beginPacket(address, 123);
udp.write(packetBuffer, NTP_PACKET_SIZE);
udp.endPacket();
Could somebody help me how to code the same with TCP?
Thank you.
I need to send receive plain TCP data packets (one byte payload only) to a given IP at a given port.
I have found the UDP library and the corresponding classes, but nothing similar to TCP.
udp.beginPacket(address, 123);
udp.write(packetBuffer, NTP_PACKET_SIZE);
udp.endPacket();
Could somebody help me how to code the same with TCP?
Thank you.