Removed automake stuff from "inert" subdirs. And there was much rejoicing.
[btb/d2x.git] / arch / linux / include / ukali.h
1 #ifndef __UKALI_H__
2 #define __UKALI_H__
3
4 //added on 10/04/98 by Matt Mueller to show correct ver in kali
5 #include "vers_id.h"
6 //end addition -MM
7
8 // 4213 is the port that KaliNix is listening on
9 //
10 //              char code; // 1 == open, 2 == close, 3 == data, 5 == GetMyAddr
11 //      acks       // 6 == open, 7 == close                             4 == GetMyAddr
12
13 // net data packets structure for send/recv
14 // struct {
15 //              char    code; == 3
16 //              char    sa_nodenum[6];
17 //              char    dport[2];
18 //              char    sport[2];
19 //              char data[];
20 // }
21
22 // net data packets for open/close socket
23 //
24 // process_name is a null terminated 8byte string
25 // struct {
26 //              char code; // 1/6 == open, 2/7 == close
27 //              char socket[2];
28 //              char pid[4];
29 //              char    process_name[9];
30 // }
31
32 // net myaddress struct which is returned after the GetMyAddress call
33 // struct {
34 //              char    code; == 4
35 //              char    sa_nodenum[6];
36 // }
37
38 // net data for GetMyAddress call
39 // struct {
40 //              char    code; == 5
41 // }
42
43 typedef struct kaliaddr_ipx_tag {
44     short sa_family;
45     char  sa_netnum[4];
46     char  sa_nodenum[6];
47     unsigned short sa_socket;
48 } kaliaddr_ipx;
49
50 // Process name that shows up in /whois and /games list.
51 // Maximum of 8 characters.
52 //edited on 10/04/98 by Matt Mueller to show correct ver in kali
53 #define KALI_PROCESS_NAME "D1X" D1XMAJOR D1XMINOR
54 //end edit -MM
55 #define MAX_PACKET_SIZE 1500
56
57 // struct ipx_helper ipx_kali = {
58 //      ipx_kali_GetMyAddress,
59 //      ipx_kali_OpenSocket,
60 //      ipx_kali_CloseSocket,
61 //      ipx_kali_SendPacket,
62 //      ipx_kali_ReceivePacket,
63 //      ipx_general_PacketReady
64 // };
65
66 int KaliGetNodeNum(kaliaddr_ipx *myaddr);
67 int KaliOpenSocket(unsigned short port);
68 int KaliCloseSocket(int hand);
69 int KaliSendPacket(int hand, char *data, int len, kaliaddr_ipx *to);
70 int KaliReceivePacket(int hand, char *data, int len, kaliaddr_ipx *from);
71
72 #endif  __UKALI_H__