File: net_socket.h

package info (click to toggle)
xblast-tnt 2.10.4-6
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 4,444 kB
  • sloc: ansic: 54,105; sh: 4,014; makefile: 129; sed: 16
file content (44 lines) | stat: -rw-r--r-- 1,676 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
 * net_socket.h - low level functions to network communication
 *
 * $Id: net_socket.h,v 1.11 2006/02/09 21:21:24 fzago Exp $
 *
 * Program XBLAST 
 * (C) by Oliver Vogel (e-mail: m.vogel@ndh.net)
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published
 * by the Free Software Foundation; either version 2; or (at your option)
 * any later version
 *
 * This program is distributed in the hope that it will be entertaining,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILTY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
 * Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.
 * 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
#ifndef XBLAST_NET_SOCKET_H
#define XBLAST_NET_SOCKET_H

/*
 * global prototypes
 */
extern void Net_Init (void);
extern XBSocket *Net_ConnectInet (const char *hostname, unsigned short port);
extern XBSocket *Net_ListenInet (unsigned short port);
extern XBSocket *Net_Accept (const XBSocket * pSocket);
extern XBSocket *Net_BindUdp (const char *device, unsigned port);
extern XBBool Net_ConnectUdp (XBSocket *, const char *, unsigned short);
extern void Net_Close (XBSocket * socket);
extern const char *Net_LocalName (const XBSocket * pSocket);
extern const char *Net_RemoteName (const XBSocket * pSocket);
extern unsigned Net_LocalPort (const XBSocket * pSocket);
extern unsigned Net_RemotePort (const XBSocket * pSocket);

#endif
/*
 * end of file net_socket.h
 */