成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

usrPPPInit()函數應用(中英對照)

網絡 網絡管理
下面我們來對usrPPPInit()的內容進行一下介紹。在這里面,我們主要參考了一些資料,進行了翻譯。還望對大家有用。

在這里我們主要介紹一下usrPPPInit()的語法應用。這里我們就針對這方面知識進行一下總結。這里我們搜集了一些參考資料進行一下中英文對照。希望對大家有所幫助。下面看看具體內容吧。

Using PPP 使用PPP

After it is configured and initialized, PPP attaches itself into the VxWorks TCP/IP stack at the driver (link) layer. After a PPP link has been established with the remote peer, all normal VxWorks IP networking facilities are available; the PPP connection is transparent to the user.

經過配置和初始化后,PPP就將自己綁定在VxWorks TCP/IP棧的驅動層中了。(VxWorks目標機)和遠程主機建立PPP連接之后,所有的VxWorks IP網絡功能都是可用的,PPP連接對用戶是透明的。

Initializing a PPP Link 初始化一條PPP連接

A PPP link is initialized by calls to either usrPPPInit( ) or pppInit( ). When either of these routines is invoked, the remote peer should be initialized. When a peer is running in passive mode, it must be initialized first (see PPP Options.)

The usrPPPInit( )routine is in config/all/bootConfig.c and src/config/usrNetwork.c. There are four ways it can be called:

If the boot device is set to ppp, usrPPPInit( ) is called as follows:

可以使用usrPPPInit()或pppInit()初始化一條PPP連接。當調用兩個之中的任一個函數時,遠程主機應該進行初始化。處于被動方的節點,應該先進行初始化(參考PPP 選項)。

usrPPPInit()函數在config/all/bootConfig.c和src/config/usrNetwork.c中,有四種方式調用它:

如果啟動設備設置了ppp,usrPPPInit()如下調用:

From( )bootConfig.c when booting from boot ROMs. 從ROM啟動時在bootConfig.c里調用。

From usrNetwork.c when booting from VxWorks boot code. 從VxWorks啟動代碼啟動時在usrNetWorks.c里調用。

The PPP interface can also be initialized by calling usrPPPInit( ): 也可以以下面的方式調用usrPPPInit( ):

From the VxWorks shell. 從VxWorks shell里調用。

By user application code. 從用戶應用程序代碼里調用。

Use either syntax when calling usrPPPInit( ): 可以使用下面兩種語法調用usrPPPInit():

usrPPPInit ("bootDevice", unitNum, "localIPAddress", "remoteIPAddress")

usrPPPInit ("bootDevice", unitNum, "localHostName", "remoteHostName")

You can use host names in usrPPPInit( ) provided the hosts have been previously added to the host database. For example, you can call usrPPPInit( ) in the following way:

你可以在usrPPPInit()中使用機器名(之前添加到主機數據庫里的),例如,你可以用以下的方式調用:

usrPPPInit ("ppp=/tyCo/1,38400", 1, "147.11.90.1", "147.11.90.199")

The usrPPPInit( ) routine calls pppInit( ), which initializes PPP with the configuration options that were specified at compile-time (see Selecting PPP Options By Configuring VxWorks). The pppInit( ) routine can be called multiple times to initialize multiple channels.2 The connection timeout is specified by PPP_CONNECT_DELAY. The return value of this routine indicates whether the link has been successfully established--if the return value is OK, the network connection should be fully operational.

usrPPPInit()函數調用pppInit(), 它使用編譯的時候配置好的選項初始化PPP(Selecting PPP Options By Configuring VxWorks)。pppInit()函數可以多次調用以初始化多個連接,可以用PPP_CONNECT_DELAY來指定連接time out的時間。如果連接建立成功,就返回OK,所有網絡的功能就都可以使用了。

The pppInit( ) routine is the standard entry point for initializing a PPP link. All available PPP options can be set using parameters specified for this routine (see Selecting PPP Options Using an Options Structure). Unlike usrPPPInit( ), the return value of pppInit( ) does not indicate the status of the PPP link; it merely reports whether the link could be initialized. To check whether the link is actually established, call pppInfoGet( ) and make sure that the state of IPCP is OPENED. The following code fragment demonstrates use of this mechanism for PPP unit 2:

pppInit()是標準的PPP初始化函數。所有可用的PPP選項都可以通過參數傳遞給pppInit()(see Selecting PPP Options Using an Options Structure)。不像usrPPPInit(), pppInit()的返回值不指示連接的狀態,它僅僅報告連接是否進行了初始化。要檢查是否真正建立了連接,調用函數pppInfoGet()(之前先確保IPCP的狀態是OPENED)。下面的代碼段演示了這個機制:

PPP_INFO     pppInfo;

if ((pppInfoGet (2, &pppInfo) == OK) &&

(pppInfo.ipcp_fsm.state == OPENED))

return (OK);                            /* link established */

else

return (ERROR);                         /* link down */
 

責任編輯:佟健 來源: hi.baidu.com
相關推薦

2010-09-17 14:07:07

SIP中繼

2009-08-02 08:50:01

2011-04-22 14:11:38

傳真機

2011-06-02 09:47:23

傳真機技巧

2011-09-02 17:30:32

英語iKnowAndroid應用

2010-11-29 10:53:14

Sybase日期函數

2009-07-22 07:42:00

Scala偏應用函數

2013-04-16 10:24:33

函數偏函數編程語言

2009-12-02 16:40:48

路由器怎么安裝

2009-07-17 10:42:06

Swing應用程序處理函數

2009-12-08 09:51:10

PHP intval函

2010-07-26 14:06:43

Perl substr

2010-02-02 10:07:59

C++全局函數

2009-12-11 10:59:48

PHP函數extrac

2010-06-18 10:33:03

Linux Acces

2024-03-12 10:36:06

函數指針代碼

2011-03-30 11:01:13

C語言隨機

2010-06-10 17:47:48

Zabbix中文

2010-06-07 12:56:58

Zabbix中文

2014-12-24 10:27:55

HypericHQ開源監控工具
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 亚洲精品国产成人 | 蜜桃精品视频在线 | 久久国产精品网站 | 亚洲成人一级 | 在线看亚洲 | 成人福利在线观看 | 精品一区视频 | 国产高清不卡 | av影音在线| 三级视频在线观看电影 | 日韩视频在线免费观看 | 国产精品国产三级国产aⅴ中文 | 成人久久18免费网站麻豆 | 亚洲视频精品 | 久久久久久久久99 | 国产精品久久久久久久久久久新郎 | 亚洲精品视频免费观看 | 欧美午夜精品久久久久免费视 | 狠狠插狠狠操 | 午夜视频免费网站 | 成年人国产在线观看 | а天堂中文最新一区二区三区 | 久久久无码精品亚洲日韩按摩 | 久久小视频 | 国产乱码精品一区二区三区忘忧草 | 久久久精选 | 日韩在线中文字幕 | 亚洲综合色视频在线观看 | 亚洲精品乱码久久久久久按摩 | 日韩激情免费 | 成人国产一区二区三区精品麻豆 | 一级日批片 | 国产精品一区二区三区在线 | 国产精品福利视频 | 男女视频免费 | 91精品国产综合久久婷婷香蕉 | 成人在线精品视频 | 亚洲乱码一区二区三区在线观看 | 国产视频黄色 | 91日韩在线 | 欧美一区二区三区一在线观看 |