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