-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwin.h
34 lines (28 loc) · 1.08 KB
/
win.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
/*
* sercd Windows support
* Copyright 2008 Peter Åstrand <[email protected]> for Cendio AB
* see file COPYING for license details
*/
#ifdef WIN32
#ifndef SERCD_WIN_H
#define SERCD_WIN_H
#include <windows.h>
#include <ws2tcpip.h>
#include "winerrno.h"
#define PORTHANDLE HANDLE
#define SERCD_SOCKET SOCKET
#define LOG_EMERG 0 /* system is unusable */
#define LOG_ALERT 1 /* action must be taken immediately */
#define LOG_CRIT 2 /* critical conditions */
#define LOG_ERR 3 /* error conditions */
#define LOG_WARNING 4 /* warning conditions */
#define LOG_NOTICE 5 /* normal but significant condition */
#define LOG_INFO 6 /* informational */
#define LOG_DEBUG 7 /* debug-level messages */
/* Default modem state polling in milliseconds. Since we are event
driven, we do not need to rely on polling. We are using a long poll
timeout, however, just to be safe. It's long enough to indicate
when things are wrong. */
#define DEFAULT_POLL_INTERVAL 4000
#endif /* SERCD_WIN_H */
#endif /* WIN32 */