0 Members and 2 Guests are viewing this topic.
sf::TcpSocket sock; sf::IpAddress address("::1"); //sf::IpAddress address("www.google.com"); cout << "address: " << address << endl; if (sock.connect(address, 80) != sf::Socket::Done) { cout << "Connection error!" << endl; return 1; } char buffer[251] = { 0 }; size_t received; char req[] = "GET / HTTP/1.1\r\n\r\n"; sock.send(req, strlen(req)); sock.receive(buffer, 250, received); cout << "buffer: " << buffer << endl; cout << "local port: " << sock.getLocalPort() << endl; cout << "remote address: " << sock.getRemoteAddress() << endl; cout << "remote port: " << sock.getRemotePort() << endl; return 0;
Is it still impossible to work with IPv6 via SFML?
QuoteIs it still impossible to work with IPv6 via SFML?Yes, this is even clearly written in the documentation
Note that sf::IpAddress currently doesn't support IPv6 nor other types of network addresses.
That's the documentation Laurent was referring to and the statement is still true, SFML still doesn't support IPv6.