-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMyCat.Net.CrossSocket.pas
55 lines (46 loc) · 1.59 KB
/
MyCat.Net.CrossSocket.pas
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
48
49
50
51
52
53
54
{******************************************************************************}
{ }
{ Delphi cross platform socket library }
{ }
{ Copyright (c) 2017 WiNDDRiVER([email protected]) }
{ }
{ Homepage: https://github.com/winddriver/Delphi-Cross-Socket }
{ }
{******************************************************************************}
unit MyCat.Net.CrossSocket;
interface
uses
{$IFDEF MSWINDOWS}
Net.CrossSocket.Iocp
{$ELSEIF defined(MACOS) or defined(IOS)}
Net.CrossSocket.Kqueue
{$ELSEIF defined(LINUX) or defined(ANDROID)}
Net.CrossSocket.Epoll
{$ENDIF};
type
TCrossListen =
{$IFDEF MSWINDOWS}
TIocpListen
{$ELSEIF defined(MACOS) or defined(IOS)}
TKqueueListen
{$ELSEIF defined(LINUX) or defined(ANDROID)}
TEpollListen
{$ENDIF};
TCrossConnection =
{$IFDEF MSWINDOWS}
TIocpConnection
{$ELSEIF defined(MACOS) or defined(IOS)}
TKqueueConnection
{$ELSEIF defined(LINUX) or defined(ANDROID)}
TEpollConnection
{$ENDIF};
TCrossSocket =
{$IFDEF MSWINDOWS}
TIocpCrossSocket
{$ELSEIF defined(MACOS) or defined(IOS)}
TKqueueCrossSocket
{$ELSEIF defined(LINUX) or defined(ANDROID)}
TEpollCrossSocket
{$ENDIF};
implementation
end.