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

x25 中文man頁面

系統
X25 sockets 為 X.25 數據包層協議(packet layer protocol)提供接口。這令應用程序可以使用標準的 ITU X.25 建議(X.25 DTE-DCE 模式)在公共 X.25 數據網中進行通訊。 X25 socket 也可以在沒有在 ISO-8208中描述的那樣的 X.25 中介(X.25 DTE-DCE 模式)的網絡進行通訊.

NAME

x25, PF_X25 - ITU-T X.25 / ISO-8208 協議接口。  

總覽

#include <sys/socket.h>
#include <linux/x25.h>
x25_socket = socket(PF_X25, SOCK_SEQPACKET, 0);  

描述

X25 sockets 為 X.25 數據包層協議(packet layer protocol)提供接口。這令應用程序可以使用標準的 ITU X.25 建議(X.25 DTE-DCE 模式)在公共 X.25 數據網中進行通訊。 X25 socket 也可以在沒有在 ISO-8208中描述的那樣的 X.25 中介(X.25 DTE-DCE 模式)的網絡進行通訊.

信息分界的保持 - 對 socket 進行 read(2) 得到的數據塊與對端 socket 對應 write(2) 動作輸出的數據塊是完全一樣的.如果必要,內核負責處理信息片段和重組長信息,用的是 X.25 M-bit 方法(校注:請懂 x.25 的同志指正)。對信息大小沒有硬編碼的上限。 但是重組長信息有時會失?。ū热缦到y資源暫時匱乏,或是出現其他的諸如此類的限制時)。如果出現這種情況,X.25 連接將被重置。  

套接口地址 SOCKET ADDRESS

AF_X25 socket 地址族用 struct sockaddr_x25 代表 ITU-T X.121 規范中定義的網絡地址。

struct sockaddr_x25 {
sa_family_t   sx25_family;  /* 必須是 AF_X25 */
x25_address   sx25_addr;    /* X.121 地址 */
};

sx25_addr 包含一個空零結尾的字符串 x25_addr[] 。 sx25_addr.x25_addr[] 由最多 15 個 ASCII 字符(不包括結束的 0)構成 X.121 地址。只能使用數字 `0' 到 `9' 。  

套接字選項 SOCKET OPTIONS

以下 X.25 相關的套接字選項可以在級別參數設置為 SOL_X25 時用 setsockopt(2) 設定并可用 getsockopt(2) 讀取。

X25_QBITINCL
控制用戶是否能夠訪問 X.25 Q-bit ((資格數據位)Qualified Data Bit)。接受整型參數。 如果設為 0 (缺省), 那么傳出的數據包不設置 Q-bit 傳入的數據包中的 Q-bit 被忽略。如果設為 1, 就會在通過該套接字傳入傳出的信息中附加一個前置的首字節。對于從套接字中數據, 首位字節的 0 表示對應的讀入包未設置 Q-bit;而如果是 1 則相反。 如果通過套接字寫入(傳出)的數據中首位字節為 1 則傳出包設置 Q-bit ,如果是 0 則不設置 Q-bit。

缺憾

有很多, 比如 X.25 PLP 實現 CONFIG_EXPERIMENTAL.(譯注:內核編譯選項,尚處于試驗階段)。

本手冊頁也不完善。

還沒有給程序員用的頭文件;您需要包含內核頭文件 linux/x25.h CONFIG_EXPERIMENTAL 也暗示著未來的接口版本可能在二進制級別不兼容。

X.25 N-重置事件(Reset events)還不會傳播給用戶進程。因此,如果重置,可能會發生數據丟失而得不到任何提示。  

另見

socket(7), socket(2).

Jonathan Simon Naylor: lqThe Re-Analysis and Re-Implementation of X.25.rq The URL is  

#p#

NAME

x25, PF_X25 - ITU-T X.25 / ISO-8208 protocol interface.

SYNOPSIS

#include <sys/socket.h>
#include <linux/x25.h>

x25_socket = socket(PF_X25, SOCK_SEQPACKET, 0);

DESCRIPTION

X25 sockets provide an interface to the X.25 packet layer protocol. This allows applications to communicate over a public X.25 data network as standardised by International Telecommunication Union's recommendation X.25 (X.25 DTE-DCE mode). X25 sockets can also be used for communication without an intermediate X.25 network (X.25 DTE-DTE mode) as described in ISO-8208.

Message boundaries are preserved - a read(2) from a socket will retrieve the same chunk of data as output with the corresponding write(2) to the peer socket. When necessary, the kernel takes care of segmenting and re-assembling long messages by means of the X.25 M-bit. There is no hard-coded upper limit for the message size. However, re-assembling of a long message might fail if there is a temporary lack of system resources or when other constraints (such as socket memory or buffer size limits) become effective. If that occurs, the X.25 connection will be reset.  

SOCKET ADDRESSES

The AF_X25 socket address family uses the struct sockaddr_x25 for representing network addresses as defined in ITU-T recommendation X.121.

struct sockaddr_x25 {
    sa_family_t   sx25_family;  /* must be AF_X25 */
    x25_address   sx25_addr;    /* X.121 Address */
};

sx25_addr contains a char array x25_addr[] to be interpreted as a null-terminated string. sx25_addr.x25_addr[] consists of up to 15 (not counting the terminating 0) ASCII characters forming the X.121 address. Only the decimal digit characters from `0' to `9' are allowed.  

SOCKET OPTIONS

The following X.25 specific socket options can be set by using setsockopt(2) and read with getsockopt(2) with the level parameter set to SOL_X25.

X25_QBITINCL
Controls whether the X.25 Q-bit (Qualified Data Bit) is accessible by the user. It expects an integer argument. If set to 0 (default), the Q-bit is never set for outgoing packets and the Q-bit of incoming packets is ignored. If set to 1, an additional first byte is prepended to each message read from or written to the socket. For data read from the socket, a 0 first byte indicates that the Q-bits of the corresponding incoming data packets were not set. A first byte with value 1 indicates that the Q-bit of the corresponding incoming data packets was set. If the first byte of the data written to the socket is 1 the Q-bit of the corresponding outgoing data packets will be set. If the first byte is 0 the Q-bit will not be set.

BUGS

Plenty, as the X.25 PLP implementation is CONFIG_EXPERIMENTAL.

This man page is incomplete.

There is no dedicated application programmer's header file yet; you need to include the kernel header file <linux/x25.h>. CONFIG_EXPERIMENTAL might also imply that future versions of the interface are not binary compatible.

X.25 N-Reset events are not propagated to the user process yet. Thus, if a reset occurred, data might be lost without notice.  

SEE ALSO

socket(7), socket(2)

Jonathan Simon Naylor: lqThe Re-Analysis and Re-Implementation of X.25.rq The URL is

ftp://ftp.pspt.fi/pub/ham/linux/ax25/x25doc.tgz
責任編輯:韓亞珊 來源: CMPP.net
相關推薦

2011-08-15 10:21:09

man中文man

2011-08-24 16:48:36

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-11 15:03:21

ACCESS中文man

2011-08-11 15:28:43

ali中文man

2011-08-11 16:31:49

biff中文man

2011-08-11 17:16:43

cce中文man

2011-08-11 18:05:04

chvt中文man

2011-08-11 18:13:07

clear中文man

2011-08-12 09:13:02

df中文man

2011-08-12 09:38:06

dircolors中文man

2011-08-12 09:44:37

dirname中文man

2011-08-12 10:20:02

echo中文man

2011-08-12 10:25:55

eject中文man

2011-08-12 11:07:19

git中文man

2011-08-12 13:18:19

head中文man

2011-08-12 13:49:23

hostid中文man

2011-08-12 13:54:46

hostname中文man

2011-08-12 14:53:56

kill中文man
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 91亚洲国产成人久久精品网站 | 精品国产乱码久久久久久88av | 99久久久久国产精品免费 | 国产精品一区二区三区在线播放 | 欧美在线视频一区 | 中文字幕成人av | 日韩欧美一级片 | 北条麻妃99精品青青久久主播 | 91大神xh98xh系列全部 | 亚洲第1页| 国产一级片 | 欧美一区二区三区小说 | 国产福利小视频 | 99在线资源 | 欧美日韩一区二区三区四区五区 | 91高清免费观看 | 一区二区免费看 | 999re5这里只有精品 | 在线观看成年视频 | 日本a∨精品中文字幕在线 亚洲91视频 | 亚洲精品国产成人 | 亚州精品天堂中文字幕 | 欧美亚洲第一区 | 久草免费福利 | 国产一区二区三区四区三区四 | 狠狠干美女| 国产在线一区二区 | 偷拍第一页 | 欧美黑人一级爽快片淫片高清 | 精品国产一区三区 | 国产一区二区在线免费视频 | 午夜一级做a爰片久久毛片 精品综合 | 日韩欧美中文字幕在线观看 | 久久精品视频91 | 91在线观看网址 | 欧美精品一区二区三区在线四季 | 爱爱视频网 | 91啪亚洲精品 | 精品天堂| 久久精品久久久久久 | 日韩av在线一区二区 |