Fixed broken example

This commit is contained in:
Fred Nicolson 2018-01-10 17:23:10 +00:00
parent bb71a5fdf8
commit 321f7304a3

View File

@ -43,7 +43,7 @@ int main()
//Try and connect to the server, create a new TCP object for the job and then connect
fr::TcpSocket socket; //Use an fr::SSLSocket if SSL
if(socket.connect(SERVER_IP, SERVER_PORT) != fr::Socket::Success)
if(socket.connect(SERVER_IP, SERVER_PORT, std::chrono::seconds(20)) != fr::Socket::Success)
{
//Failed to connect
std::cout << "Failed to connect to: " << SERVER_IP << ":" << SERVER_PORT << std::endl;