]> icculus.org git repositories - divverent/netradiant.git/blob - libs/l_net/l_net_wins.h
automatically run the decompiler when specifying a BSP file in Import...
[divverent/netradiant.git] / libs / l_net / l_net_wins.h
1 /*
2 Copyright (C) 1999-2006 Id Software, Inc. and contributors.
3 For a list of contributors, see the accompanying CONTRIBUTORS file.
4
5 This file is part of GtkRadiant.
6
7 GtkRadiant is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11
12 GtkRadiant is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GtkRadiant; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20 */
21
22 //===========================================================================
23 //
24 // Name:         l_net_wins.h
25 // Function:     WinSock
26 // Programmer:   MrElusive
27 // Last update:  TTimo: cross-platform version, l_net library
28 // Tab Size:     3
29 // Notes:
30 //===========================================================================
31
32 int  WINS_Init(void);
33 void WINS_Shutdown(void);
34 char *WINS_MyAddress(void);
35 int  WINS_Listen(int socket);
36 int  WINS_Accept(int socket, struct sockaddr_s *addr);
37 int  WINS_OpenSocket(int port);
38 int  WINS_OpenReliableSocket(int port);
39 int  WINS_CloseSocket(int socket);
40 int  WINS_Connect (int socket, struct sockaddr_s *addr);
41 int  WINS_CheckNewConnections(void);
42 int  WINS_Read(int socket, byte *buf, int len, struct sockaddr_s *addr);
43 int  WINS_Write(int socket, byte *buf, int len, struct sockaddr_s *addr);
44 int  WINS_Broadcast (int socket, byte *buf, int len);
45 char *WINS_AddrToString (struct sockaddr_s *addr);
46 int  WINS_StringToAddr (char *string, struct sockaddr_s *addr);
47 int  WINS_GetSocketAddr (int socket, struct sockaddr_s *addr);
48 int  WINS_GetNameFromAddr (struct sockaddr_s *addr, char *name);
49 int  WINS_GetAddrFromName (char *name, struct sockaddr_s *addr);
50 int  WINS_AddrCompare (struct sockaddr_s *addr1, struct sockaddr_s *addr2);
51 int  WINS_GetSocketPort (struct sockaddr_s *addr);
52 int  WINS_SetSocketPort (struct sockaddr_s *addr, int port);