nn::socket::Initialize Function

Syntax

Result Initialize(
     uptr bufferAddress,
     size_t bufferSize,
     s32 bufferSizeForSockets,
     s32 maxSessions
);

Result Initialize(
     nn::fnd::IAllocator & allocator,
     size_t bufferSize,
     s32 maxSessions
);

Result Initialize(
     void
);

List of Overloaded Member Functions

Initialize(uptr, size_t, s32, s32) Initializes the socket library, allowing socket API functions to be called.
Initialize(nn::fnd::IAllocator &, size_t, s32) Initializes the socket library, allowing socket API functions to be called.
Initialize(void) Initializes the socket library, allowing socket API functions to be called.

Description of Initialize(uptr, size_t, s32, s32)

Initializes the socket library, allowing socket API functions to be called.

Description of Initialize(nn::fnd::IAllocator &, size_t, s32)

Retained for compatibility with past versions. Try to avoid using this function if at all possible, because it does not use memory efficiently.

Description of Initialize(void)

Omits all arguments and sets parameters to the default values. This function is provided for testing purposes. Do not use it when developing a product.


CONFIDENTIAL