null_net.c (1605B)
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 "../qcommon/qcommon.h" 24 25 /* 26 ============= 27 NET_StringToAdr 28 29 localhost 30 idnewt 31 idnewt:28000 32 192.246.40.70 33 192.246.40.70:28000 34 ============= 35 */ 36 qboolean NET_StringToAdr (char *s, netadr_t *a) 37 { 38 if (!strcmp (s, "localhost")) { 39 memset (a, 0, sizeof(*a)); 40 a->type = NA_LOOPBACK; 41 return true; 42 } 43 44 return false; 45 } 46 47 /* 48 ================== 49 Sys_SendPacket 50 ================== 51 */ 52 void Sys_SendPacket( int length, void *data, netadr_t to ) { 53 } 54 55 /* 56 ================== 57 Sys_GetPacket 58 59 Never called by the game logic, just the system event queing 60 ================== 61 */ 62 qboolean Sys_GetPacket ( netadr_t *net_from, msg_t *net_message ) { 63 return false; 64 }