Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions OnlineCore/include/Platform/Core/StringConversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "nn/types.h"

namespace StringConversion {
namespace nn::nex::StringConversion {

void Utf8ToWideChar(const char*, wchar_t*, u64);
void WideCharToUtf8(const wchar_t*, char*, u64);
Expand Down Expand Up @@ -34,4 +34,4 @@ void GetCharValue(wchar_t);
void StringToHex(const wchar_t*, unsigned char*, u64);
void HexToString(const unsigned char*, wchar_t*, u64);

} // namespace StringConversion
} // namespace nn::nex::StringConversion
2 changes: 1 addition & 1 deletion OnlineCore/src/Platform/Stack/Core/InetAddress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ u64 InetAddress::GetKey() const {
}

u16 InetAddress::GetPortNumber() const {
return nn::socket::InetHtons(m_Attributes.port);
return nn::socket::InetNtohs(m_Attributes.port);
}

void InetAddress::EnableAutoLookup(bool isAutoLookup) {
Expand Down