Secondary Client - Whois Handling Sequence




The "whois" function consists of three packet types and the results appear in a message box.
The message formats are listed below.





Sending A Whois Request

Scenario 1: We will attempt to gather "whois" data from another WPN client using our secondary client

Lets begin by contacting the Primary Node we are connected to and sending the 0x1389 whois packet in the following format.

Send Whois Request
[0x1389][ Packet Data Length : 2 ][ "WinMX " : 6 ][ User IP & Port  ASCII : 12 ][ 00 : 1 ][ UserName : S ][ 00 : 1 ]

Note: [ User IP & Port  ASCII : 12 ] =    "3f96daff1a2b"      ; IP and Port in ASCII format


Actually sent: Brackets added for clarity.
[89 13][29 00][57 69 6E 4D 58 20][62 38 61 31 37 39 37 61 31 38 37 31][00][44 61 42 65 65 73 2D 4B 6E 65 65 73 32 33 33 5F 34 38 31 31 33] [00]      

ASCII = ?) WinMX b8a1797a1871 DaBees-Knees233_48113



The Primary will now locate the user we wish to know more about and deliver us the data using the following packet

Whois Answer
[ 0x138A ][ Packet Data Length : 2 ][ "WinMX " : 6 ][ User IP & Port  ASCII : 12 ][ 00 : 1 ][ UserName : S ][ 00 : 1 ][ Line Type : 2 ][ Online Time : 4 ][ Files : 2 ][ Que Status : S ][ 00 : 1 ]


Actually received: Brackets added for clarity.
[8A 13][54 00 ][57 69 6E 4D 58 20][62 38 61 31 37 39 37 61 31 38 37 31][00][44 61 42 65 65 73 2D 4B 6E 65 65 73 32 33 33 5F 34 38 31 31 33][00][07 00][05 03 00 00][B8 0B][38 39 39 35 20 35 20 69 6E 20 71 75 65 75 65 20 28 30 20 6F 66 20 33 20 61 76 61 69 6C 61 62 6C 65 29][00]
 
ASCII = [?T WinMX b8a1797a1871 DaBees-Knees233_48113    ? 8995 5 in queue (0 of 3 available)






In some circumstances our whois request will fail and the primary will in that event inform us it cannot locate the remote client

Whois Request Failed
[0x138B][ Packet Data Length : 2 ][ "WinMX " : 6 ][ UserName : S ][ 00 : 1 ][ Message String* : S ][ 00 : 1 ]

* "Whois query failed" or "No response from remote host"
- Depending on client version.

Actually sent: Brackets added for clarity.
[8B 13][8B 13][47 00][57 69 6E 4D 58 20][62 38 61 31 37 39 37 61 31 38 37 31][00][44 61 42 65 65 73 2D 4B 6E 65 65 73 32 33 33 5F 34 38 31 31 33][00][4E 6F 20 72 65 73 70 6F 6E 73 65 20 66 72 6F 6D 20 72 65 6D 6F 74 65 20 68 6F 73 74 2E][00]
 
ASCII = ?B WinMX b8a1797a1871 DaBees-Knees233_48113 No response from remote host
   



We now know either the remote clients data or that they have changed primary, changed IP, changed username or gone offline amongst other common reasons for a failure.


I hope this guide has been of some assistance.

©2005-2019 WinMXWorld.com. All rights reserved. Page last updated Mon Jun 06 2016