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

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

标  题: icq protocl(4) <br>

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

  <br>

Code Name Description <br>

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

0A 00 ACK Acknowledgement <br>

0E 01 SEND_MESSAGE Send message through server (to offline user) <br>

E8 03 LOGIN Login on server <br>

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

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

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

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

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

4C 04 LOGIN_1 Sent during login <br>

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

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

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

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

28 05 LOGIN_2 Sent during login <br>

Not yet described in detail (v0.1 of this document) <br>

0A 05 UPDATE_INFO Update my basic information <br>

B0 04 UPDATE_EXT_INFO Update my extended information <br>



3C 05 ADD_TO_LIST Add user to my contact list <br>

56 04 REQ_ADD_TO_LIST Request authorization to add to contact list <br>

BA 04 QUERY_SERVERS Query the server about address to other servers <br>

C4 04 QUERY_ADDONS Query the server about globally defined add-ons <br>

EC 04 NEW_USER_1 Ask for permission to add a new user <br>

FC 03 NEW_USER_REG Register a new user <br>

A6 04 NEW_USER_INFO Send basic information about a new user <br>

42 04 CMD_X1 *Unknown <br>

56 04 MSG_TO_NEW_USER Send a message to a user not on my contact list <br>

(this one is also used to request permission to add someone with 'authorize' <br>

status to your contact list) <br>

The following commands can be sent from the server to the client, either as <br>

a response to a client command, or to notify the client of some event. <br>

Code Name Description <br>

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

0A 00 ACK Acknowledgement <br>

5A 00 LOGIN_REPLY Login reply <br>

6E 00 USER_ONLINE User on contact list is online/has changed online <br>

status <br>

78 00 USER_OFFLINE User on contact list has gone offline <br>

8C 00 USER_FOUND User record found matching search criteria <br>

DC 00 RECEIVE_MESSAGE Message sent while offline/through server <br>



A0 00 END_OF_SEARCH No more USER_FOUND will be sent <br>

18 01 INFO_REPLY Return basic information about a user <br>

22 01 EXT_INFO_REPLY Return extended information about a user <br>

A4 01 STATUS_UPDATE User on contact list has changed online status (A <br>

way etc) <br>

Not yet described in detail (v0.1 of this document) <br>

1C 02 REPLY_X1 *Unknown (returned during login) <br>

E6 00 REPLY_X2 *Unknown (confirm my UIN?) <br>

E0 01 UPDATE_REPLY Confirmation of basic information update <br>

C8 00 UPDATE_EXT_REPLY Confirmation of extended information update <br>

46 00 NEW_USER_UIN Confirmation of creation of new user and newly as <br>

signed UIN <br>

B4 00 NEW_USER_REPLY Confirmation of new user basic information <br>

82 00 QUERY_REPLY Response to QUERY_SEVERS or QUERY_ADDONS <br>

C2 01 SYSTEM_MESSAGE System message with URL'ed button <br>

The UDP messages will now be examined in closer detail. <br>

MESSAGES SENT BY THE CLIENT <br>

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

ACK (0A 00) Acknowledgement <br>

--- <br>

Parameters: None <br>

NOTE! Unlike all other commands, in ACK the field SEQ_NUM contains the <br>



sequence number of the *server's* packet the client wishes to acknowledge. <br>

Note further that an ACK should *not* be acknowledged! <br>

SEND_MESSAGE (0E 01) Send message through server (to offline user) <br>

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

Parameters: <br>

Length Content (if fixed) Name Description <br>

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

4 bytes xx xx xx xx RECEIVER_UIN UIN of the user the message is <br>

sent to <br>

2 bytes (see below) MESSAGE_TYPE Type of message being sent <br>

2 bytes xx xx LENGTH Length of MESSAGE including NU <br>

LL <br>

variable MESSAGE The message, ended by a NULL ( <br>

00) <br>

MESSAGE_TYPE can be one of the following: <br>

01 00 - the message is a normal message <br>

04 00 - the message is an URL, and actually consists of two parts, <br>

separated by the code FE. <br>

The first part is the description of the URL, and the second part is the <br>

actual URL. <br>

LOGIN (E8 03) Login on server <br>

----- <br>

----- <br>

Parameters: <br>

Length Content (if fixed) Name Description <br>

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

4 bytes xx xx xx xx PORT The TCP port to use for incomi <br>

ng connections <br>

2 bytes xx xx LENGTH Length of PASSWORD including N <br>

ULL <br>

variable PASSWORD The user's password + NULL (ma <br>

x 8 chars) <br>

4 bytes 78 00 00 00 X1 *Unknown <br>

4 bytes xx xx xx xx USER_IP The user's IP address <br>

1 byte 04 X2 *Unknown <br>

4 bytes xx xx xx xx STATUS Users online status (normally <br>

00 00 00 00) <br>

4 bytes 02 00 00 00 X3 *Unknown <br>

2 bytes xx xx LOGIN_SEQ_NUM Login sequence number <br>

4 bytes 00 00 00 00 X4 *Unknown <br>

4 bytes 08 00 78 00 X5 *Unknown <br>

  <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="259.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 + -