Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Guillermo

Pages: [1]
1
Network / Re: Function sf::IpAddress::getLocalAddress() on MacOS
« on: September 28, 2013, 06:31:27 pm »
This is what I am doing and get 0.0.0.0:

    std::string x = sf::IpAddress::getLocalAddress().toString();
    // Create the main window
    sf::RenderWindow window(sf::VideoMode(800, 600), x);
 

 Add this in SocketImpl.cpp and nothing happened:

    std::memset(addr.sin_addr.s_addr, 0, sizeof(addr.sin_addr.s_addr));
    std::memset(addr.sin_family, 0, sizeof(addr.sin_family));
    std::memset(addr.sin_port , 0, sizeof(addr.sin_port ));
 

Even when inserting something that is not valid everything goes in the
same way, so I assume the program is not calling this file at all.

PS: Total newbie here. :)

2
Network / Re: Function sf::IpAddress::getLocalAddress() on MacOS
« on: September 28, 2013, 03:46:05 am »
Hi, thanks for the fast respond.
I'm using the SMFL 2.1 in Mac OS X 10.8.2.

3
Network / Re: Function sf::IpAddress::getLocalAddress() on MacOS
« on: September 27, 2013, 01:41:16 am »
Has this been solve? I'm getting exactly the same.
Thanks.

Pages: [1]