Quake-III-Arena

Quake III Arena GPL Source Release
Log | Files | Refs

mac_net.c (1635B)


      1 /*
      2 ===========================================================================
      3 Copyright (C) 1999-2005 Id Software, Inc.
      4 
      5 This file is part of Quake III Arena source code.
      6 
      7 Quake III Arena source code is free software; you can redistribute it
      8 and/or modify it under the terms of the GNU General Public License as
      9 published by the Free Software Foundation; either version 2 of the License,
     10 or (at your option) any later version.
     11 
     12 Quake III Arena source code is distributed in the hope that it will be
     13 useful, 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 Foobar; if not, write to the Free Software
     19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
     20 ===========================================================================
     21 */
     22 
     23 #include "../game/q_shared.h"
     24 #include "../qcommon/qcommon.h"
     25 
     26 /*
     27 =============
     28 NET_StringToAdr
     29 
     30 localhost
     31 idnewt
     32 idnewt:28000
     33 192.246.40.70
     34 192.246.40.70:28000
     35 =============
     36 */
     37 qboolean	NET_StringToAdr (char *s, netadr_t *a)
     38 {	
     39 	if (!strcmp (s, "localhost")) {
     40 		memset (a, 0, sizeof(*a));
     41 		a->type = NA_LOOPBACK;
     42 		return true;
     43 	}
     44 
     45 	return false;
     46 }
     47 
     48 /*
     49 ==================
     50 Sys_SendPacket
     51 ==================
     52 */
     53 void Sys_SendPacket( int length, void *data, netadr_t to ) {
     54 }
     55 
     56 /*
     57 ==================
     58 Sys_GetPacket
     59 
     60 Never called by the game logic, just the system event queing
     61 ==================
     62 */
     63 qboolean	Sys_GetPacket ( netadr_t *net_from, msg_t *net_message ) {
     64 	return false;
     65 }