1 /*-------------------------------------------------------------------------
\r
3 * df32func extension definitions
\r
5 * Copyright (c) 2007-2015, glyn@8kb.co.uk
\r
6 * Author: Glyn Astill <glyn@8kb.co.uk>
\r
8 *-------------------------------------------------------------------------
\r
11 #ifndef _DF32FUNC_H_
\r
12 #define _DF32FUNC_H_
\r
14 #define DLLIMPORT __declspec (dllexport)
\r
16 DLLIMPORT void CloseConnection(int socket);
\r
17 DLLIMPORT int ClientSocket(int PortNo, char* IPAddress);
\r
18 DLLIMPORT int Send(int socket, char* data);
\r
19 DLLIMPORT int Receive(int socket, char *pData);
\r
20 DLLIMPORT int ServerSocket(int PortNo);
\r
21 DLLIMPORT int AcceptClient();
\r
22 DLLIMPORT unsigned int PseudoRand(unsigned int w);
\r
23 DLLIMPORT unsigned int RdtscRand();
\r
24 DLLIMPORT int GetTzi (TCHAR* zone, TCHAR *result);
\r
25 DLLIMPORT int RegexpMatch(const char *str, const char *pattern, const char *flags, int errors);
\r
26 DLLIMPORT int RegexpMatches(const char *str, const char *pattern, const char *flags, char *output, int output_len, int errors);
\r
27 DLLIMPORT int RegexpReplace(const char *str, const char *pattern, const char *replacement, const char *flags, char *output, int output_len, int errors);
\r
29 #endif /* _DF32FUNC_H_ */
\r