summaryrefslogtreecommitdiff
path: root/include/SFML/Network/TcpListener.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/SFML/Network/TcpListener.hpp')
-rw-r--r--include/SFML/Network/TcpListener.hpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/include/SFML/Network/TcpListener.hpp b/include/SFML/Network/TcpListener.hpp
index 720ebf1..e0e05d6 100644
--- a/include/SFML/Network/TcpListener.hpp
+++ b/include/SFML/Network/TcpListener.hpp
@@ -1,7 +1,7 @@
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
-// Copyright (C) 2007-2017 Laurent Gomila (laurent@sfml-dev.org)
+// Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org)
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages arising from the use of this software.
@@ -65,14 +65,16 @@ public:
unsigned short getLocalPort() const;
////////////////////////////////////////////////////////////
- /// \brief Start listening for connections
+ /// \brief Start listening for incoming connection attempts
///
- /// This functions makes the socket listen to the specified
- /// port, waiting for new connections.
- /// If the socket was previously listening to another port,
- /// it will be stopped first and bound to the new port.
+ /// This function makes the socket start listening on the
+ /// specified port, waiting for incoming connection attempts.
///
- /// \param port Port to listen for new connections
+ /// If the socket is already listening on a port when this
+ /// function is called, it will stop listening on the old
+ /// port before starting to listen on the new port.
+ ///
+ /// \param port Port to listen on for incoming connection attempts
/// \param address Address of the interface to listen on
///
/// \return Status code