Sockets services: Difference between revisions
Misson20000 (talk | contribs) GetAddrInfo |
Partially based on https://docs.rtems.org/releases/rtemsdocs-4.10.0/share/rtems/html/networking/networking00024.html & LibAppletWeb & some tests |
||
Line 67: | Line 67: | ||
|} | |} | ||
== Initalize == | |||
Takes a [[#BsdConfig]] (made-up name), the PID, the size of the transfer memory and a copy-handle of the latter. | |||
=== BsdConfig === | |||
typedef struct { | |||
u32 version; ///< Observed 1 on 2.0 LibAppletWeb, 2 on 3.0. | |||
u32 tcpSendBufferSize; ///< Size of the TCP send buffer (initial or fixed). | |||
u32 tcpReceiveBufferSize; ///< Size of the TCP recieve buffer (initial or fixed). | |||
u32 tcpSendBufferMaxSize; ///< Maximum size of the TCP send buffer. If it is 0, the initial size of the buffer is actually fixed. | |||
u32 tcpReceiveBufferMaxSize; ///< Maximum size of the TCP receive buffer. If it is 0, the initial size of the buffer is actually fixed. | |||
u32 udpSendBufferSize; ///< Size of the TCP send buffer (typically 0x2400 bytes). | |||
u32 udpSendBufferSize; ///< Size of the TCP send buffer (typically 0xA500 bytes). | |||
s32 socketBufferEffiency; ///< Number of buffers for each socket (standard values range from 1 to 8). | |||
} BsdConfig; | |||
= sfdnsres = | = sfdnsres = | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" |