Line 1:
Line 1:
−
nsysnet.rpl is the library that provides Berkeley sockets (BSD sockets), network configuration, and SSL functions. You can find more information about BSD sockets on [http://en.wikipedia.org/wiki/Berkeley_sockets Wikipedia]
+
nsysnet.rpl is the library that provides Berkeley sockets (BSD sockets), network configuration, and SSL functions.
==Functions==
==Functions==
===Socket===
===Socket===
−
Many of these socket functions are standard BSD calls (connect(), recv(), send(), etc.), and behave the same.
+
Many of these socket functions are standard BSD ones (connect(), recv(), send(), etc.). You can find more information about BSD sockets on [http://en.wikipedia.org/wiki/Berkeley_sockets Wikipedia].
{| class="wikitable"
{| class="wikitable"
!Name
!Name
Line 73:
Line 73:
u16 sin_family;
u16 sin_family;
u16 sin_port;
u16 sin_port;
−
struct in_addr sin_addr;
+
struct in_addr sin_addr;
char sin_zero[8];
char sin_zero[8];
} sockaddr_in;
} sockaddr_in;
Line 81:
Line 81:
|
|
<syntaxhighlight lang="C">
<syntaxhighlight lang="C">
−
typedef struct {
+
typedef struct
+
{
u32 s_addr;
u32 s_addr;
} in_addr;
} in_addr;