Improved the API documentation of sf::IpAddress
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1452 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
b7eb09cb79
commit
e924c9cf39
34 changed files with 336 additions and 264 deletions
|
@ -13,7 +13,7 @@
|
|||
void DoClientTCP(unsigned short port)
|
||||
{
|
||||
// Ask for server address
|
||||
sf::IPAddress serverAddress;
|
||||
sf::IpAddress serverAddress;
|
||||
do
|
||||
{
|
||||
std::cout << "Type address or name of the server to connect to : ";
|
||||
|
@ -66,7 +66,7 @@ void DoServerTCP(unsigned short port)
|
|||
std::cout << "Server is listening to port " << port << ", waiting for connections... " << std::endl;
|
||||
|
||||
// Wait for a connection
|
||||
sf::IPAddress clientAddress;
|
||||
sf::IpAddress clientAddress;
|
||||
sf::SocketTCP client;
|
||||
if (server.Accept(client, &clientAddress) != sf::Socket::Done)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue