10 #include <sys/types.h>
11 #include <sys/socket.h>
12 #include <netinet/in.h>
14 #include <arpa/inet.h>
20 typedef void* WSAEVENT
;
21 #define closesocket close
35 #ifdef IRTRANSDLL_EXPORTS
36 #define IRTRANSDLL_API __declspec(dllexport)
39 #define IRTRANSDLL_API extern "C" __declspec(dllimport)
41 #define IRTRANSDLL_API __declspec(dllimport)
47 #define IRTRANSDLL_API
51 IRTRANSDLL_API
int ConnectIRTransServer (char host
[],SOCKET
*sock
);
52 IRTRANSDLL_API
void DisconnectIRTransServer (SOCKET serv
);
53 IRTRANSDLL_API NETWORKSTATUS
*LearnIRCode (SOCKET serv
, char rem
[],char com
[],unsigned short timeout
);
54 IRTRANSDLL_API NETWORKSTATUS
*LearnRepeatIRCode (SOCKET serv
, char rem
[],char com
[],unsigned short timeout
);
55 IRTRANSDLL_API NETWORKSTATUS
*SendRemoteCommand (SOCKET serv
, char rem
[],char com
[],int mask
,int LEDSel
,int bus
);
56 IRTRANSDLL_API NETWORKRECV
*ReceiveIR (SOCKET serv
);
57 IRTRANSDLL_API NETWORKSTATUS
*ReloadIRDatabase (SOCKET serv
);
58 IRTRANSDLL_API
int GetDeviceStatus (SOCKET serv
, void *result
);