sockmain.c

来自「wm PNE 3.3 source code, running at more 」· C语言 代码 · 共 71 行

C
71
字号
/* $Header: /usr/cvsroot/target/src/wrn/wm/demo/socktest/sockmain.c,v 1.2 2001/11/09 22:10:14 josh Exp $ *//* * Copyright (C) 1999-2005 Wind River Systems, Inc. * All rights reserved.  Provided under license only. * Distribution or other use of this software is only * permitted pursuant to the terms of a license agreement * from Wind River Systems (and is otherwise prohibited). * Refer to that license agreement for terms of use. *//**************************************************************************** *  Copyright 1998-1999 Integrated Systems, Inc. *  All rights reserved. ****************************************************************************//* * $Log: sockmain.c,v $ * Revision 1.2  2001/11/09 22:10:14  josh * socktest path modifications, first pass * * Revision 1.1.1.1  2001/11/05 17:49:13  tneale * Tornado shuffle * * Revision 1.2  2001/01/19 22:24:53  paul * Update copyright. * * Revision 1.1  2000/10/16 19:22:14  paul * Renamed from sock_main.c * * Revision 1.7  2000/03/17 00:14:45  meister * Update copyright message * * Revision 1.6  1999/09/21 17:52:38  paul * Reorder include files to avoid redefinition of timeval in BSD. * * Revision 1.5  1999/03/04 15:44:08  paul * added copyright * moved sockets_init() into attache_init() * *//* [clearcase]modification history-------------------01a,19apr05,job  update copyright notices*/#include <wrn/wm/demo/snarklib.h>#include <wrn/wm/attache/attthd.h>#include <wrn/wm/attache/sockets.h>extern void sock_main(int, char **);void snark_main(struct task *initial_task, void *cookie){  struct snark_main_args *main_args = (struct snark_main_args *) cookie;  ATTACHE_UNLOCK();  sock_main(main_args->argc, main_args->argv);  ATTACHE_LOCK();  snark_exit(0);}

⌨️ 快捷键说明

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