Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Update port number of choice for UDP example.
  • Loading branch information
Kilemonn authored Jun 28, 2024
1 parent 2706418 commit 5be881b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ void udpExample()
{
// The socket receiving data must first be bound
kt::UDPSocket socket;
socket.bind(87893, kt::InternetProtocolVersion::IPV4);
socket.bind(37893, kt::InternetProtocolVersion::IPV4);

kt::UDPSocket client;
const std::string testString = "UDP test string";
if (!client.sendTo("localhost", 87893, testString).first)
if (!client.sendTo("localhost", 37893, testString).first)
{
std::cout << "Failed to send to address." << std::endl;
return;
Expand Down

0 comments on commit 5be881b

Please sign in to comment.