| 1 |
/*---------------------------------------------------------------------------------------------- |
| 2 |
Copyright (c) 2004, Noboru Iwata |
| 3 |
All rights reserved. |
| 4 |
|
| 5 |
Redistribution and use in source and binary forms, with or without modification, |
| 6 |
are permitted provided that the following conditions are met: |
| 7 |
|
| 8 |
* Redistributions of source code must retain the above copyright notice, |
| 9 |
this list of conditions and the following disclaimer. |
| 10 |
* Redistributions in binary form must reproduce the above copyright notice, |
| 11 |
this list of conditions and the following disclaimer in the documentation |
| 12 |
and/or other materials provided with the distribution. |
| 13 |
* Neither the name of the <ORGANIZATION> nor the names of its contributors |
| 14 |
may be used to endorse or promote products derived from this software without |
| 15 |
specific prior written permission. |
| 16 |
|
| 17 |
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
| 18 |
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| 19 |
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
| 20 |
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
| 21 |
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
| 22 |
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 23 |
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 24 |
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| 25 |
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, |
| 26 |
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 |
|
| 28 |
program : pmxfilter |
| 29 |
|
| 30 |
---------------------------------------------------------------------------------------------*/ |
| 31 |
|
| 32 |
#define FALSE 0 |
| 33 |
#define TRUE 1 |
| 34 |
#define MSGLEN 4096 |
| 35 |
|
| 36 |
typedef int BOOL; |
| 37 |
typedef int SOCKET; |
| 38 |
typedef long DWORD; |
| 39 |
typedef unsigned long ULONG; |
| 40 |
typedef char * LPSTR; |
| 41 |
|
| 42 |
BOOL sub_SocInit(char *host,unsigned short port); |
| 43 |
void sub_SocEnd(void); |
| 44 |
int sub_cRecv(long t); |
| 45 |
int sub_cSend(const char *str,int len); |
| 46 |
extern char rcvMsg[]; |
| 47 |
|