-
Notifications
You must be signed in to change notification settings - Fork 0
/
vssSrv.h
47 lines (35 loc) · 984 Bytes
/
vssSrv.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#pragma once
#ifdef VSS_WINDOWS
#include <windows.h>
#endif
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <poll.h> // struct pollfd
#include "platform.h"
#define iNil (-1)
#define hNil (-1.0f)
typedef unsigned long ulong;
inline void FloatCopy(void* dst, const void* src, const int n)
{
memcpy(dst, src, n * sizeof(float));
}
inline void ZeroFloats(void* dst, const int n)
{
memset(dst, 0, n * sizeof(float));
}
extern void PingServer(struct sockaddr_in*);
extern void Srv_UpdateMasterVolume(float);
extern int actorMessageMM(const char*, struct sockaddr_in*);
extern int actorMessageHandler(const char*);
// Only to test vss by sending messages to itself.
extern float ClientReturnVal();
#ifdef UNUSED
extern const char * ClientReturnValString();
#endif
extern void ReturnFloatToClient(float);
extern void ReturnStringToClient(const char*);
extern float* PvzMessageGroupRecentHandle();
extern struct pollfd vpfd;