Skip to content

Commit 738227a

Browse files
committed
Update readme with changes.
1 parent 3cd2bb5 commit 738227a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ A ServerSocket and Socket library for Windows and Linux that supports Wifi commu
3232
void tcpExample()
3333
{
3434
// Create a new Wifi ServerSocket
35-
kt::ServerSocket server(kt::SocketType::Wifi, 56756, 20, kt::InternetProtocolVersion::IPV6);
35+
kt::ServerSocket server(std::nullopt, 56756, 20, kt::InternetProtocolVersion::IPV6);
3636

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

7575
kt::UDPSocket client;
7676
const std::string testString = "UDP test string";

0 commit comments

Comments
 (0)