Send/Receive TCP packets
Posted: Fri Feb 16, 2018 1:08 pm
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.