#include <wintirpc.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <stdio.h>
Go to the source code of this file.
◆ NYEARS
◆ TOFFSET
◆ _rpc_dtablesize()
◆ do_close() [1/2]
◆ do_close() [2/2]
Definition at line 150 of file rtime.c.
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
◆ rtime()
Definition at line 69 of file rtime.c.
77 unsigned long thetime;
102 res =
sendto(
s, (
char *)&thetime,
sizeof(thetime), 0,
103 (
struct sockaddr *)addrp,
sizeof(*addrp));
121 fromlen =
sizeof(
from);
133 res =
recv(
s, (
char *)&thetime,
sizeof(thetime), 0);
139 if (
res !=
sizeof(thetime)) {
143 thetime =
ntohl(thetime);
INT WSAAPI recvfrom(IN SOCKET s, OUT CHAR FAR *buf, IN INT len, IN INT flags, OUT LPSOCKADDR from, IN OUT INT FAR *fromlen)
SOCKET WSAAPI socket(IN INT af, IN INT type, IN INT protocol)
INT WSAAPI connect(IN SOCKET s, IN CONST struct sockaddr *name, IN INT namelen)
INT WSAAPI select(IN INT s, IN OUT LPFD_SET readfds, IN OUT LPFD_SET writefds, IN OUT LPFD_SET exceptfds, IN CONST struct timeval *timeout)
static void do_close(SOCKET)
INT WSAAPI WSAGetLastError(VOID)
PSERVENT WSAAPI getservbyname(IN const char FAR *name, IN const char FAR *proto)
INT WSAAPI sendto(IN SOCKET s, IN CONST CHAR FAR *buf, IN INT len, IN INT flags, IN CONST struct sockaddr *to, IN INT tolen)
GLuint GLuint GLsizei GLenum type
int _rpc_dtablesize(void)
INT WSAAPI recv(IN SOCKET s, OUT CHAR FAR *buf, IN INT len, IN INT flags)