0 Members and 3 Guests are viewing this topic.
#include <iostream>#include <SFML/Network.hpp>int main(int argc, char* argv) { std::cout << sf::IpAddress::GetLocalAddress().ToString(); return 0;}
If the socket is using a connectionless protocol, the address may not be available until I/O occurs on the socket.
char buffer[] = {0};send(socket, buffer, 1, 0);