Skip to content

Commit

Permalink
Update readme with changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kilemonn committed Dec 24, 2024
1 parent 3cd2bb5 commit 738227a
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 @@ -32,7 +32,7 @@ A ServerSocket and Socket library for Windows and Linux that supports Wifi commu
void tcpExample()
{
// Create a new Wifi ServerSocket
kt::ServerSocket server(kt::SocketType::Wifi, 56756, 20, kt::InternetProtocolVersion::IPV6);
kt::ServerSocket server(std::nullopt, 56756, 20, kt::InternetProtocolVersion::IPV6);

// Create new TCP socket
kt::TCPSocket client("::1", server.getPort());
Expand Down Expand Up @@ -70,7 +70,7 @@ void udpExample()
{
// The socket receiving data must first be bound
kt::UDPSocket socket;
socket.bind(37893, kt::InternetProtocolVersion::IPV4);
socket.bind(std::nullopt, 37893, kt::InternetProtocolVersion::IPV4);

kt::UDPSocket client;
const std::string testString = "UDP test string";
Expand Down

0 comments on commit 738227a

Please sign in to comment.