From 8ac0e7491aa8e223cf5d5859073eb1d3da0f24d7 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Perrier Date: Tue, 26 Jan 2021 15:41:39 +0100 Subject: [PATCH] Typo Initialize -> Initializes, and so on ... --- Source/Engine/Platform/Base/NetworkBase.h | 44 +++++++++++------------ 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/Source/Engine/Platform/Base/NetworkBase.h b/Source/Engine/Platform/Base/NetworkBase.h index 3dff55a56..4b9c10196 100644 --- a/Source/Engine/Platform/Base/NetworkBase.h +++ b/Source/Engine/Platform/Base/NetworkBase.h @@ -75,18 +75,18 @@ class FLAXENGINE_API NetworkBase { public: /// - /// Initialize the network module. + /// Initializes the network module. /// /// Return true on error. Otherwise false. static bool Init(); /// - /// Deinitialize the network module. + /// Deinitializes the network module. /// static void Exit(); /// - /// Create a new native socket. + /// Creates a new native socket. /// /// The socket struct to fill in. /// The protocol. @@ -95,14 +95,14 @@ class FLAXENGINE_API NetworkBase static bool CreateSocket(NetworkSocket& socket, NetworkProtocolType proto, NetworkIPVersion ipv); /// - /// Close native socket. + /// Closes native socket. /// /// The socket. /// Return true on error. Otherwise false. static bool DestroySocket(NetworkSocket& socket); /// - /// Set the specified socket option. + /// Sets the specified socket option. /// /// The socket. /// The option. @@ -111,7 +111,7 @@ class FLAXENGINE_API NetworkBase static bool SetSocketOption(NetworkSocket& socket, NetworkSocketOption option, bool value); /// - /// Set the specified socket option. + /// Sets the specified socket option. /// /// The socket. /// The option. @@ -120,7 +120,7 @@ class FLAXENGINE_API NetworkBase static bool SetSocketOption(NetworkSocket& socket, NetworkSocketOption option, int32 value); /// - /// Get the specified socket option. + /// Gets the specified socket option. /// /// The socket. /// The option. @@ -129,7 +129,7 @@ class FLAXENGINE_API NetworkBase static bool GetSocketOption(NetworkSocket& socket, NetworkSocketOption option, bool* value); /// - /// Get the specified socket option. + /// Gets the specified socket option. /// /// The socket. /// The option. @@ -138,7 +138,7 @@ class FLAXENGINE_API NetworkBase static bool GetSocketOption(NetworkSocket& socket, NetworkSocketOption option, int32* value); /// - /// Connect a socket to the specified end point. + /// Connects a socket to the specified end point. /// /// The socket. /// The end point. @@ -146,7 +146,7 @@ class FLAXENGINE_API NetworkBase static bool ConnectSocket(NetworkSocket& socket, NetworkEndPoint& endPoint); /// - /// Bind a socket to the specified end point. + /// Binds a socket to the specified end point. /// /// The socket. /// The end point. @@ -154,7 +154,7 @@ class FLAXENGINE_API NetworkBase static bool BindSocket(NetworkSocket& socket, NetworkEndPoint& endPoint); /// - /// Listen for incoming connection. + /// Listens for incoming connection. /// /// The socket. /// Pending connection queue size. @@ -162,7 +162,7 @@ class FLAXENGINE_API NetworkBase static bool Listen(NetworkSocket& socket, uint16 queueSize); /// - /// Accept a pending connection. + /// Accepts a pending connection. /// /// The socket. /// The newly connected socket. @@ -171,28 +171,28 @@ class FLAXENGINE_API NetworkBase static bool Accept(NetworkSocket& serverSock, NetworkSocket& newSock, NetworkEndPoint& newEndPoint); /// - /// Check for socket readability. + /// Checks for socket readability. /// /// The socket. /// Return true when data is available. Otherwise false. static bool IsReadable(NetworkSocket& socket); /// - /// Check for socket writeability. + /// Checks for socket writeability. /// /// The socket. /// Return true when data can be written. Otherwise false. static bool IsWriteable(NetworkSocket& socket); /// - /// Update sockets states. + /// Updates sockets states. /// /// The sockets group. /// Return -1 on error, The number of elements where states are nonzero, otherwise 0. static int32 Poll(NetworkSocketGroup& group); /// - /// Retrieve socket state. + /// Retrieves socket state. /// /// The group. /// The socket index in group. @@ -201,7 +201,7 @@ class FLAXENGINE_API NetworkBase static bool GetSocketState(NetworkSocketGroup& group, uint32 index, NetworkSocketState& state); /// - /// Add a socket to a group. + /// Adds a socket to a group. /// /// The group. /// The socket. @@ -209,13 +209,13 @@ class FLAXENGINE_API NetworkBase static int32 AddSocketToGroup(NetworkSocketGroup& group, NetworkSocket& socket); /// - /// Clear the socket group. + /// Clears the socket group. /// /// The group. static void ClearGroup(NetworkSocketGroup& group); /// - /// Write data to the socket. + /// Writes data to the socket. /// /// The socket. /// The data to write. @@ -225,7 +225,7 @@ class FLAXENGINE_API NetworkBase static int32 WriteSocket(NetworkSocket socket, byte* data, uint32 length, NetworkEndPoint* endPoint = nullptr); /// - /// Read data on the socket. + /// Reads data on the socket. /// /// The socket. /// The buffer. @@ -235,7 +235,7 @@ class FLAXENGINE_API NetworkBase static int32 ReadSocket(NetworkSocket socket, byte* buffer, uint32 bufferSize, NetworkEndPoint* endPoint = nullptr); /// - /// Create an end point. + /// Creates an end point. /// /// The address (hostname, IPv4 or IPv6). /// The port. @@ -246,7 +246,7 @@ class FLAXENGINE_API NetworkBase static bool CreateEndPoint(String* address, String* port, NetworkIPVersion ipv, NetworkEndPoint& endPoint, bool bindable = false); /// - /// Remap an ipv4 end point to an ipv6 one. + /// Remaps an ipv4 end point to an ipv6 one. /// /// The ipv4 end point. /// The ipv6 end point.