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

📄 259.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="260.htm">下一篇</a>]
<hr><p align="left"><small>发信人: nothing (迷茫~浮), 信区: Winsock <br>

标  题: icq protocol(5) <br>

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

  <br>

CONTACT_LIST (06 04) Inform the server of my contact list <br>

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

Parameters: <br>

Length Content (if fixed) Name Description <br>

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

2 bytes xx xx NUM_CONTACTS Number of contacts following <br>

{4 bytes xx xx xx xx UIN UIN of user on contact list } <br>

The last field is repeated for as many users as NUM_CONTACTS indicate. <br>

The server will send online/offline notification to client only of users <br>

registered using CONTACT_LIST. <br>

SEARCH_UIN (1A 04) Search for user using his/her UIN <br>

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

Parameters: <br>

Length Content (if fixed) Name Description <br>

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

2 bytes xx xx SEARCH_SEQ_NUM Search sequence number <br>

4 bytes xx xx xx xx SEARCHED_UIN The UIN to search for <br>

The SEARCH_SEQ_NUM should be a unique number, to distinguish from other <br>

searches. The reply from the server will contain the SEARCH_SEQ_NUM of the <br>



search, to facitilate matching query and answer. <br>

SEARCH_USER (24 04) Search for user using his/her name or e-mail <br>

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

Parameters: <br>

Length Content (if fixed) Name Description <br>

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

2 bytes xx xx SEARCH_SEQ_NUM Search sequence number <br>

2 bytes xx xx LENGTH Length of NICK_NAME including <br>

NULL <br>

variable NICK_NAME Nick name to search for, NULL <br>

terminated <br>

2 bytes xx xx LENGTH Length of FIRST_NAME including <br>

NULL <br>

variable FIRST_NAME First name to search for, NULL <br>

terminated <br>

2 bytes xx xx LENGTH Length of LAST_NAME including <br>

NULL <br>

variable LAST_NAME Nick name to search for, NULL <br>

terminated <br>

2 bytes xx xx LENGTH Length of E_MAIL including NUL <br>

L <br>

variable E_MAIL E-mail to search for, NULL ter <br>



minated <br>

Note that search fields (NICK_NAME, FIRST_NAME, LAST_NAME, E_MAIL) may be <br>

empty, but not all at the same time, i.e. at least one field must contain <br>

data. Note also that you may only search either on E_MAIL (in which the <br>

other fields must be empty), or on name (in which E_MAIL must be empty, and <br>

one or more of the other fields must contain data). <br>

KEEP_ALIVE (2E 04) Sent to indicate connection is still up <br>

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

Parameters: None <br>

This command should be sent at regular intervals (normally every 2 minutes, <br>

or 120 seconds) from the client to the server. <br>

SEND_TEXT_CODE (38 04) Send special message to server as text <br>

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

Parameters: <br>

Length Content (if fixed) Name Description <br>

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

2 bytes xx xx LENGTH Length of TEXT_CODE including <br>

NULL <br>

variable TEXT_CODE Message to send to server, NUL <br>

L terminated <br>

2 bytes xx xx X1 *Unknown (code, usually 04 00 <br>

or 05 00) <br>

or 05 00) <br>

The TEXT_CODE can contain for instance: <br>

"B_USER_DISCONNECTED" (in which case the X1 field should containt 05 00) if <br>

the user has disconnected. <br>

"B_MESSAGE_ACK" (in which case the X1 field should containt 05 00) if the <br>

client has problem connecting to the server. This is a request for the <br>

server to answer immediately to the client. <br>

LOGIN_1 (4C 04) Sent during login <br>

------- <br>

Parameters: None <br>

This is sent during login. The exact purpose of this command is *Unknown. <br>

INFO_REQ (60 04) Request basic information about a user <br>

-------- <br>

Parameters: <br>

Length Content (if fixed) Name Description <br>

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

2 bytes xx xx INFO_SEQ_NUM Information sequential number <br>

4 bytes xx xx xx xx QUERY_UIN UIN of user to request informa <br>

tion about <br>

The server will respond with a INFO_REPLY, with the same INFO_SEQ_NUM. <br>

EXT_INFO_REQ (6A 04) Request extended information about a user <br>

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

Parameters: <br>

Parameters: <br>

Length Content (if fixed) Name Description <br>

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

2 bytes xx xx INFO_SEQ_NUM Information sequential number <br>

4 bytes xx xx xx xx QUERY_UIN UIN of user to request informa <br>

tion about <br>

The server will respond with a EXT_INFO_REPLY, with the same INFO_SEQ_NUM. <br>

CHANGE_PASSWORD (9C 04) Change the user's password <br>

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

Parameters: <br>

Length Content (if fixed) Name Description <br>

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

2 bytes xx xx PASSWORD_SEQ_NUM Password changing sequential n <br>

umber <br>

2 bytes xx xx LENGTH Length of NEW_PASSWORD includi <br>

ng NULL <br>

variable NEW_PASSWORD The new password, NULL termina <br>

ted (max 8 chars) <br>

STATUS_CHANGE (D8 04) User has changed online status (Away etc) <br>

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

Parameters: <br>

Length Content (if fixed) Name Description <br>

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



4 bytes (see below) STATUS User's online status (Away etc <br>

) <br>

The STATUS may take four different values: <br>

00 00 00 00 = Online/connected <br>

01 00 00 00 = Away <br>

11 00 00 00 = Do Not Disturb (DND) <br>

00 01 00 00 = Invisible <br>

LOGIN_2 (28 05) Sent during login <br>

------- <br>

Parameters: <br>

Length Content (if fixed) Name Description <br>

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

1 byte 00 X1 *Unknown <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="260.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 + -