Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
ArchNetworkWinsock.cpp File Reference
#include "arch/win32/ArchNetworkWinsock.h"
#include "arch/Arch.h"
#include "arch/IArchMultithread.h"
#include "arch/XArch.h"
#include "arch/win32/ArchMultithreadWindows.h"
#include "arch/win32/XArchWindows.h"
#include <malloc.h>
Include dependency graph for ArchNetworkWinsock.cpp:

Macros

#define FD_ISSET(fd, set)
#define setfunc(var, name, type)

Functions

static SOCKET (PASCAL FAR *accept_winsock)(SOCKET s
static int (PASCAL FAR *bind_winsock)(SOCKET s
static u_short (PASCAL FAR *htons_winsock)(u_short v)
static char FAR *PASCAL FAR * inet_ntoa_winsock (struct in_addr in)
static unsigned long (PASCAL FAR *inet_addr_winsock)(const char FAR *cp)
static struct hostent FAR *PASCAL FAR * gethostbyaddr_winsock (const char FAR *addr, int len, int type)
static struct hostent FAR *PASCAL FAR * gethostbyname_winsock (const char FAR *name)
static WSAEVENT (PASCAL FAR *WSACreateEvent_winsock)(void)
static BOOL (PASCAL FAR *WSACloseEvent_winsock)(WSAEVENT)
static DWORD (PASCAL FAR *WSAWaitForMultipleEvents_winsock)(DWORD
static FARPROC netGetProcAddress (HMODULE module, LPCSTR name)

Variables

static const int s_family []
static const int s_type [] = {SOCK_DGRAM, SOCK_STREAM}
static struct sockaddr FAR * addr
static struct sockaddr FAR int FAR * addrlen
static const struct sockaddr FAR int namelen
static const struct sockaddr FAR * name
static int level
static int int optname
static int int void FAR * optval
static int int void FAR int FAR * optlen
static int cmd
static int void FAR * data
static int backlog
static void FAR * buf
static void FAR int len
static void FAR int int flags
static fd_set FAR * readfds
static fd_set FAR fd_set FAR * writefds
static fd_set FAR fd_set FAR fd_set FAR * exceptfds
static fd_set FAR fd_set FAR fd_set FAR const struct timeval FAR * timeout
static int how
static int type
static int int protocol
static fd_set FAR * fdset
static WSAEVENT
static long
static const WSAEVENT FAR BOOL
static const WSAEVENT FAR DWORD
static LPWSANETWORKEVENTS
static HMODULE s_networkModule = nullptr

Macro Definition Documentation

◆ FD_ISSET

#define FD_ISSET ( fd,
set )
Value:
WSAFDIsSet_winsock((SOCKET)(fd), (fd_set FAR *)(set))
static SOCKET(PASCAL FAR *accept_winsock)(SOCKET s

◆ setfunc

#define setfunc ( var,
name,
type )
Value:
var = (type)netGetProcAddress(module, #name)
static const struct sockaddr FAR * name
Definition ArchNetworkWinsock.cpp:27
static int type
Definition ArchNetworkWinsock.cpp:44
static FARPROC netGetProcAddress(HMODULE module, LPCSTR name)
Definition ArchNetworkWinsock.cpp:64

Function Documentation

◆ BOOL()

BOOL ( PASCAL FAR * WSACloseEvent_winsock)
static

◆ DWORD()

DWORD ( PASCAL FAR * WSAWaitForMultipleEvents_winsock)
static

◆ gethostbyaddr_winsock()

struct hostent FAR *PASCAL FAR * gethostbyaddr_winsock ( const char FAR * addr,
int len,
int type )
static

◆ gethostbyname_winsock()

struct hostent FAR *PASCAL FAR * gethostbyname_winsock ( const char FAR * name)
static

◆ inet_ntoa_winsock()

char FAR *PASCAL FAR * inet_ntoa_winsock ( struct in_addr in)
static

◆ int()

int ( PASCAL FAR * bind_winsock)
static

◆ long()

unsigned long ( PASCAL FAR * inet_addr_winsock) const
static

◆ netGetProcAddress()

FARPROC netGetProcAddress ( HMODULE module,
LPCSTR name )
static

◆ SOCKET()

SOCKET ( PASCAL FAR * accept_winsock)
static

◆ u_short()

u_short ( PASCAL FAR * htons_winsock)
static

◆ WSAEVENT()

WSAEVENT ( PASCAL FAR * WSACreateEvent_winsock)
static

Variable Documentation

◆ addr

const struct sockaddr FAR * addr

◆ addrlen

struct sockaddr FAR int FAR* addrlen

◆ backlog

int backlog

◆ BOOL

const WSAEVENT FAR BOOL

◆ buf

const void FAR * buf

◆ cmd

int cmd

◆ data

int void FAR* data

◆ DWORD

const WSAEVENT FAR DWORD

◆ exceptfds

fd_set FAR fd_set FAR fd_set FAR* exceptfds

◆ fdset

fd_set FAR* fdset

◆ flags

const void FAR int int flags

◆ how

int how

◆ len

const void FAR int len

◆ level

int level

◆ long

long

◆ LPWSANETWORKEVENTS

LPWSANETWORKEVENTS

◆ name

const struct sockaddr FAR* name

◆ namelen

int namelen

◆ optlen

int int const void FAR int optlen

◆ optname

int int optname

◆ optval

int int const void FAR * optval

◆ protocol

int int protocol

◆ readfds

fd_set FAR* readfds

◆ s_family

const int s_family[]
static
Initial value:
= {
PF_UNSPEC,
PF_INET,
PF_INET6,
}

◆ s_networkModule

HMODULE s_networkModule = nullptr
static

◆ s_type

const int s_type[] = {SOCK_DGRAM, SOCK_STREAM}
static

◆ timeout

fd_set FAR fd_set FAR fd_set FAR const struct timeval FAR* timeout

◆ type

int type

◆ writefds

fd_set FAR fd_set FAR* writefds

◆ WSAEVENT

WSAEVENT