Secondary Client - Private Message Handling Sequence




The Private message function sequences are made up of two types and appear in two types of message box one being the familar PM box and the other being the Chat window box, both utilise the same packets and the client settings decide how they are displayed locally. Both incoming and outgoing formats are listed below.


Sending PM (13EC)-> Await PM Acknowledged (13ED)

Receive PM (13F6)-> We Now Acknowledge with (144F)



Sending A Private message


Scenario 1: We will attempt to initiate a private message to another WPN client using our secondary client

Lets begin by contacting the Primary Node we are connected to and sending the 0x13EC Private Message packet in the following format.

Send PM
[0x13EC][ Packet Data Length : 2 ][ "WinMX " : 6 ][ User IP & Port  ASCII : 12 ][ 00 : 1 ][ UserName : S ][ 00 : 1 ][ MessageString : S ][ 00 : 1 ]

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


Actually sent: Brackets added for clarity.
[EC 13][3F 00][57 69 6E 4D 58 20][30 64 64 34 66 39 35 63 31 38 37 31][00][23 63 31 23 5B 57 2F A5 5C 57 5D 23 63 38 23 A3 61 64 FF A0 52 E5 79 B7 B0 A4 2E B8 32 34 36 5F 35 30 31 34 36][00][74 65 73 74][00]    

ASCII = �a WinMX 0dd4f95c1871 #c1#[W/?\W]#c8#?ad?y???.?246_50146 test  



This will now be acknowledged by the primary using the following packet

PM Acknowledged
[0x13ED][ Packet Data Length : 2 ][ "WinMX " : 6 ][ User IP & Port  ASCII : 12 ][00:1][ UserName : S ][ 00 : 1 ][ *"SENT" : 4 ][ 00 : 1 ]
* Possible message strings are "SENT","User is ignoring you", "User is Ofline".


Actually sent: Brackets added for clarity.
[ED 13][3E 00][57 69 6E 4D 58 20][ 30 64 64 34 66 39 35 63 31 38 37 31][00][23 63 31 23 5B 57 2F A5 5C 57 5D 23 63 38 23 A3 61 64 FF A0 52 E5 79 B7 B0 A4 2E B8 32 34 36 5F 35 30 31 34 36][00][53 45 4E 54][00]  

ASCII =  ��gt;  WinMX 0dd4f95c1871 #c1#[W/?\W]#c8#?ad?y???.?246_50146 SENT







Incoming Private Message Handling - Primary to Secondary client


Scenario 2: We will handle a private message sent by another WPN client to our secondary client

Incoming PM
[0x13F6][ Packet Data Length : 2 ][ ID : 12 ][ "WinMX " : 6 ][ User IP & Port  ASCII : 12 ][ 00 : 1 ][ UserName : S ][ 00 : 1 ][ Message String : S ][ 00 : 1 ]


Actually sent: Brackets added for clarity.
[F6 13][55 00][FB 9D AE 07 FC 09 C2 54 DE 1E 15 25][57 69 6E 4D 58 20][30 64 64 34 66 39 35 63 31 38 37 31][00][23 63 31 23 5B 57 2F A5 5C 57 5D 23 63 38 23 A3 61 64 FF A0 52 E5 79 B7 B0 A4 2E B8 32 34 36 5F 35 30 31 34 36][00][74 65 73 74 65 72 73 20 6E 65 65 64 65 64 20][00]    

ASCII = ?  ?�E#1950;%WinMX 0dd4f95c1871 #c1#[W/?\W]#c8#?ad?y???.?246_50146 testers needed  
   



Lets now let our Primary know we got the message successfully with a 144F type message packet

Message Acknowledged Packet
[0x144F][ Packet Data Length : 2 ][ "WinMX " : 6 ][ User IP & Port  ASCII : 12 ][ 00 : 1 ][ UserName : S ][ 00 : 1 ][ Message ID : 12 ][ *"SENT" : 4 ][ 00 : 1 ]
* Possible message strings are "SENT","User is ignoring you", "User is Ofline" possibly others.


Actually sent: Brackets added for clarity.
[4F 14][4A 00][57 69 6E 4D 58 20][30 64 64 34 66 39 35 63 31 38 37 31][00][23 63 31 23 5B 57 2F A5 5C 57 5D 23 63 38 23 A3 61 64 FF A0 52 E5 79 B7 B0 A4 2E B8 32 34 36 5F 35 30 31 34 36][00][FB 9D AE 07 FC 09 C2 54 DE 1E 15 25][53 45 4E 54][00]    

ASCII = OJ WinMX 0dd4f95c1871 #c1#[W/?\W]#c8#?ad?y???.?246_50146 ?�E#1950;%SENT







I hope this guide has been of assistance.

©2005-2024 WinMXWorld.com. All rights reserved. Page last updated Tue Oct 17 2017