ReactOS 0.4.15-dev-7928-g68a8619
SocketUtil.c File Reference
#include "syshdrs.h"
Include dependency graph for SocketUtil.c:

Go to the source code of this file.

Functions

int GetSocketBufSize (int UNUSED(sockfd), size_t *const rsize, size_t *const ssize)
 
int SetSocketBufSize (int UNUSED(sockfd), size_t UNUSED(rsize), size_t UNUSED(ssize))
 
int GetSocketNagleAlgorithm (const int UNUSED(fd))
 
int SetSocketNagleAlgorithm (const int UNUSED(fd), const int UNUSED(onoff))
 
int GetSocketLinger (const int UNUSED(fd), int *const UNUSED(lingertime))
 
int SetSocketLinger (const int UNUSED(fd), const int UNUSED(l_onoff), const int UNUSED(l_linger))
 

Function Documentation

◆ GetSocketBufSize()

int GetSocketBufSize ( int   UNUSEDsockfd,
size_t *const  rsize,
size_t *const  ssize 
)

Definition at line 5 of file SocketUtil.c.

6{
7 LIBSIO_USE_VAR(sockfd);
8 if (ssize != NULL)
9 *ssize = 0;
10 if (rsize != NULL)
11 *rsize = 0;
12 return (-1);
13} /* GetSocketBufSize */
#define NULL
Definition: types.h:112
#define LIBSIO_USE_VAR(a)
Definition: sio.h:140

◆ GetSocketLinger()

int GetSocketLinger ( const int   UNUSEDfd,
int *const   UNUSEDlingertime 
)

Definition at line 136 of file SocketUtil.c.

137{
139 LIBSIO_USE_VAR(lingertime);
140 return (-1);
141} /* GetSocketLinger */
static int fd
Definition: io.c:51

◆ GetSocketNagleAlgorithm()

int GetSocketNagleAlgorithm ( const int   UNUSEDfd)

Definition at line 87 of file SocketUtil.c.

88{
90 return (-1);
91} /* GetSocketNagleAlgorithm */

◆ SetSocketBufSize()

int SetSocketBufSize ( int   UNUSEDsockfd,
size_t   UNUSEDrsize,
size_t   UNUSEDssize 
)

Definition at line 49 of file SocketUtil.c.

50{
51 LIBSIO_USE_VAR(sockfd);
52 LIBSIO_USE_VAR(rsize);
53 LIBSIO_USE_VAR(ssize);
54 return (-1);
55} /* SetSocketBufSize */

◆ SetSocketLinger()

int SetSocketLinger ( const int   UNUSEDfd,
const int   UNUSEDl_onoff,
const int   UNUSEDl_linger 
)

Definition at line 164 of file SocketUtil.c.

165{
167 LIBSIO_USE_VAR(l_onoff);
168 LIBSIO_USE_VAR(l_linger);
169 return (-1);
170} /* SetSocketLinger */

◆ SetSocketNagleAlgorithm()

int SetSocketNagleAlgorithm ( const int   UNUSEDfd,
const int   UNUSEDonoff 
)

Definition at line 113 of file SocketUtil.c.

114{
117 return (-1);
118} /* SetSocketNagleAlgorithm */
static const char * onoff(int bool)
Definition: cmds.c:777