1 //-------------------------------------------------------------------------
\r
3 // This file contains definitions of "Win32" api functions provided by
\r
4 // the df32func.dll dynamic link library.
\r
6 // This file is to be included when using socket networking in df32func.mk
\r
8 // Copyright (c) 2006-2015, glyn@8kb.co.uk
\r
10 // df32func/df32func.h
\r
11 //-------------------------------------------------------------------------
\r
13 Define __df32func_h__
\r
15 //-------------------------------------------------------------------------
\r
16 // External functions
\r
17 //-------------------------------------------------------------------------
\r
19 external_function ClientSocket "ClientSocket" df32func.dll dword port string host returns integer
\r
20 external_function ServerSocket "ServerSocket" df32func.dll dword port returns integer
\r
21 external_function AcceptClient "AcceptClient" df32func.dll returns integer
\r
22 external_function Send "Send" df32func.dll dword socket string data returns integer
\r
23 external_function Receive "Receive" df32func.dll dword socket pointer dataOut returns integer
\r
24 external_function CloseConnection "CloseConnection" df32func.dll dword socket returns integer
\r
25 external_function PseudoRand "PseudoRand" df32func.dll dword w returns integer
\r
26 external_function RdtscRand "RdtscRand" df32func.dll returns integer
\r
27 external_function GetTzi "GetTzi" df32func.dll pointer lpTimeZone pointer lpResult returns integer
\r
28 external_function RegexpMatch "RegexpMatch" df32func.dll pointer str pointer pattern pointer flags integer errors returns integer
\r
29 external_function RegexpMatches "RegexpMatches" df32func.dll pointer str pointer pattern pointer flags pointer out pointer out_len integer errors returns integer
\r
30 external_function RegexpReplace "RegexpReplace" df32func.dll pointer str pointer pattern pointer replacement pointer flags pointer out pointer out_len integer errors returns integer