⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 257.htm

📁 unix高级编程原吗
💻 HTM
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>CTerm非常精华下载</title>
</head>
<body bgcolor="#FFFFFF">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="577">
<tr><td width="32%" rowspan="3" height="123"><img src="DDl_back.jpg" width="300" height="129" alt="DDl_back.jpg"></td><td width="30%" background="DDl_back2.jpg" height="35"><p align="center"><a href="http://apue.dhs.org"><font face="黑体"><big><big>apue</big></big></font></a></td></tr>
<tr>
<td width="68%" background="DDl_back2.jpg" height="44"><big><big><font face="黑体"><p align="center">               ● UNIX网络编程                       (BM: clown)                </font></big></big></td></tr>
<tr>
<td width="68%" height="44" bgcolor="#000000"><font face="黑体"><big><big><p   align="center"></big></big><a href="http://cterm.163.net"><img src="banner.gif" width="400" height="60" alt="banner.gif"border="0"></a></font></td>
</tr>
<tr><td width="100%" colspan="2" height="100" align="center" valign="top"><br><p align="center">[<a href="index.htm">回到开始</a>][<a href="247.htm">上一层</a>][<a href="258.htm">下一篇</a>]
<hr><p align="left"><small>发信人: nothing (迷茫~浮), 信区: Winsock <br>

标  题: icq protocol(3) <br>

发信站: 武汉白云黄鹤站 (Thu May 11 10:15:18 2000), 转信 <br>

  <br>

COMMUNICATION BETWEEN SERVER AND CLIENT USING UDP <br>

================================================= <br>

The UDP packet sent from the client to the server has the following general <br>

layout: <br>

Length Content (if fixed) Name Description <br>

------ ------------------ ---- ----------- <br>

2 bytes 02 00 VERSION Identifies the packet as an IC <br>

Q packet <br>

2 bytes xx xx COMMAND Code for service the server sh <br>

ould provide <br>

2 bytes xx xx SEQ_NUM Sequence number <br>

4 bytes xx xx xx xx UIN The senders UIN <br>

variable PARAMETERS 0 or more parameters (dependin <br>

g on COMMAND) <br>

The UDP packet sent from the server to the client has the following general <br>

layout: <br>

Length Content (if fixed) Name Description <br>

------ ------------------ ---- ----------- <br>

2 bytes 02 00 VERSION Identifies the packet as an IC <br>



Q packet <br>

2 bytes xx xx COMMAND Code for service the server sh <br>

ould provide <br>

2 bytes xx xx SEQ_NUM Sequence number <br>

variable PARAMETERS 0 or more parameters (dependin <br>

g on COMMAND) <br>

The VERSION field is present on all ICQ packets, and identifies the packet <br>

as a ICQ message. The SEQ_NUM contains a sequence number for the packet. All <br>

packets must have a unique sequence number (unless it is a retransmission). <br>

This is used to avoid confusion if a UDP packet is lost or duplicated (as <br>

may happen). Normally, the SEQ_NUM of the current packet is the previous <br>

 packet> + 1. Note that the server and the client has separate <br>

numbering, so that SEQ_NUM = 3 of a packet sent from the server is different <br>

from SEQ_NUM = 3 of a packet sent from the client. Note also that the server <br>

start counting on 00 00, and the client start counting on 01 00. <br>

The following commands are available for the client to send to the server: <br>

  <br>

-- <br>

※ 来源:.武汉白云黄鹤站 bbs.whnet.edu.cn.[FROM: 202.120.9.13 <br>

</small><hr>
<p align="center">[<a href="index.htm">回到开始</a>][<a href="247.htm">上一层</a>][<a href="258.htm">下一篇</a>]
<p align="center"><a href="http://cterm.163.net">欢迎访问Cterm主页</a></p>
</table>
</body>
</html>

⌨️ 快捷键说明

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