network.c

来自「GNU FreeDOS兼容MS DOS很好的东东.」· C语言 代码 · 共 64 行

C
64
字号
/****************************************************************//*                                                              *//*                          network.c                           *//*                            DOS-C                             *//*                                                              *//*                 Networking Support functions                 *//*                                                              *//*                   Copyright (c) 1995, 1999                   *//*                         James Tabor                          *//*                      All Rights Reserved                     *//*                                                              *//* This file is part of DOS-C.                                  *//*                                                              *//* DOS-C 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.                    *//*                                                              *//* DOS-C is distributed in the hope that it will be useful, but *//* WITHOUT ANY WARRANTY; without even the implied warranty of   *//* MERCHANTABILITY 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 DOS-C; see the file COPYING.  If not,     *//* write to the Free Software Foundation, 675 Mass Ave,         *//* Cambridge, MA 02139, USA.                                    *//****************************************************************/#include "portab.h"#include "globals.h"#ifdef VERSION_STRINGSstatic BYTE *RcsId =    "$Id: network.c,v 1.22 2004/04/21 17:40:12 bartoldeman Exp $";#endif/* see RBIL D-2152 and D-215D06 before attempting   to change these two functions! */UWORD get_machine_name(BYTE FAR * netname){  fmemcpy(netname, &net_name, 16);  return (NetBios);}VOID set_machine_name(BYTE FAR * netname, UWORD name_num){  NetBios = name_num;  fmemcpy(&net_name, netname, 15);  net_set_count++;}int network_redirector_fp(unsigned cmd, void far *s){  return (int)network_redirector_mx(cmd, s, 0);}int network_redirector(unsigned cmd){  return network_redirector_fp(cmd, NULL);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?