Add end-of-line spaces checker
This commit is contained in:
@@ -144,7 +144,7 @@ namespace Nz
|
||||
void AbstractSocket::SetReceiveBufferSize(std::size_t size)
|
||||
{
|
||||
NazaraAssert(m_handle != SocketImpl::InvalidHandle, "Socket must be created first");
|
||||
|
||||
|
||||
SocketImpl::SetReceiveBufferSize(m_handle, size);
|
||||
}
|
||||
|
||||
@@ -156,7 +156,7 @@ namespace Nz
|
||||
void AbstractSocket::SetSendBufferSize(std::size_t size)
|
||||
{
|
||||
NazaraAssert(m_handle != SocketImpl::InvalidHandle, "Socket must be created first");
|
||||
|
||||
|
||||
SocketImpl::SetSendBufferSize(m_handle, size);
|
||||
}
|
||||
|
||||
@@ -249,7 +249,7 @@ namespace Nz
|
||||
m_lastError = abstractSocket.m_lastError;
|
||||
m_state = abstractSocket.m_state;
|
||||
m_type = abstractSocket.m_type;
|
||||
|
||||
|
||||
abstractSocket.m_handle = SocketImpl::InvalidHandle;
|
||||
|
||||
return *this;
|
||||
|
||||
@@ -710,7 +710,7 @@ namespace Nz
|
||||
#else
|
||||
int byteSent = sendmsg(handle, &msgHdr, 0);
|
||||
#endif
|
||||
|
||||
|
||||
if (byteSent == -1)
|
||||
{
|
||||
int errorCode = errno;
|
||||
@@ -892,7 +892,7 @@ namespace Nz
|
||||
|
||||
if (error)
|
||||
*error = SocketError::NoError;
|
||||
|
||||
|
||||
#if not defined(MSG_NOSIGNAL) // -> https://github.com/intel/parameter-framework/pull/133/files
|
||||
//There is no MSG_NOSIGNAL on macos
|
||||
const int set = 1;
|
||||
@@ -1017,7 +1017,7 @@ namespace Nz
|
||||
int SocketImpl::TranslateNetProtocolToAF(NetProtocol protocol)
|
||||
{
|
||||
NazaraAssert(protocol <= NetProtocol::Max, "Protocol has value out of enum");
|
||||
|
||||
|
||||
constexpr EnumArray<NetProtocol, int> addressFamily {
|
||||
AF_UNSPEC, //< NetProtocol::Any
|
||||
AF_INET, //< NetProtocol::IPv4
|
||||
@@ -1031,7 +1031,7 @@ namespace Nz
|
||||
int SocketImpl::TranslateSocketTypeToSock(SocketType type)
|
||||
{
|
||||
NazaraAssert(type <= SocketType::Max, "Socket type has value out of enum");
|
||||
|
||||
|
||||
constexpr EnumArray<SocketType, int> socketType {
|
||||
SOCK_RAW, //< SocketType::Raw
|
||||
SOCK_STREAM, //< SocketType::TCP
|
||||
|
||||
@@ -445,7 +445,7 @@ namespace Nz
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
SocketState SocketImpl::PollConnection(SocketHandle handle, const IpAddress& /*address*/, UInt64 msTimeout, SocketError* error)
|
||||
{
|
||||
// Wait until socket is available for writing or an error occurs (ie when connection succeeds or fails)
|
||||
@@ -1041,7 +1041,7 @@ namespace Nz
|
||||
int SocketImpl::TranslateSocketTypeToSock(SocketType type)
|
||||
{
|
||||
NazaraAssert(type <= SocketType::Max, "Socket type has value out of enum");
|
||||
|
||||
|
||||
constexpr EnumArray<SocketType, int> socketType {
|
||||
SOCK_RAW, //< SocketType::Raw
|
||||
SOCK_STREAM, //< SocketType::TCP
|
||||
|
||||
Reference in New Issue
Block a user