Difference between revisions of "Protocol:Packet 0x02"

From Sylverant
Jump to navigationJump to search
(Add page about Packet 0x02.)
 
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The server sends Packet 0x02 to non-Blue Burst clients to verify that a server is in place where the client is connecting, as well as to communicate the encryption vectors that will be in use for the rest of the connection.
+
The server sends Packets 0x02 and 0x17 to non-Blue Burst clients to verify that a server is in place where the client is connecting, as well as to communicate the encryption vectors that will be in use for the rest of the connection. For PSO Blue Burst, [[Protocol:Packet 0x03|Packet 0x03]] is used for this purpose.
  
==Dreamcast Packet Format==
+
Packet 0x02 is used for ship/block ports, and 0x17 is used for the login server.
 +
 
 +
Sending an 0x17 to a GameCube client will cause it to reply with an 0xDB, but only for the first 0x17 received in the client's session.
 +
 
 +
==Dreamcast/Gamecube Packet Format==
 
{| border="1"
 
{| border="1"
 
! Bytes !! Meaning
 
! Bytes !! Meaning
 
|-
 
|-
| 0x00 || Packet Type (0x02)
+
| 0x00 || Packet Type (0x02 or 0x17)
 
|-
 
|-
 
| 0x01 || Flags (0x00)
 
| 0x01 || Flags (0x00)
Line 18: Line 22:
 
|}
 
|}
  
The Copyright Message that must be included in the above copyright message field is the following (padded by zeroes, without quotes):
+
==PC Packet Format==
"DreamCast Lobby Server. Copyright SEGA Enterprises. 1999"
+
{| border="1"
 +
! Bytes !! Meaning
 +
|-
 +
| 0x00-0x01 || Packet Size (At least 0x004C, everything after byte 0x4B will be ignored)
 +
|-
 +
| 0x03 || Packet Type (0x02 or 0x17)
 +
|-
 +
| 0x04 || Flags (0x00)
 +
|-
 +
| 0x04-0x43 || Copyright Message (see below)
 +
|-
 +
| 0x44-0x47 || Server Encryption Vector
 +
|-
 +
| 0x48-0x4B || Client Encryption Vector
 +
|}
 +
 
 +
The Copyright Message that must be included in the above copyright message field is one of the two following things:
 +
* For Ship/Block Servers: "DreamCast Lobby Server. Copyright SEGA Enterprises. 1999"
 +
* For the Login Server: "DreamCast Port Map. Copyright SEGA Enterprises. 1999"
  
 
[[Category:PSO Server Protocol]]
 
[[Category:PSO Server Protocol]]

Latest revision as of 05:16, 13 December 2021

The server sends Packets 0x02 and 0x17 to non-Blue Burst clients to verify that a server is in place where the client is connecting, as well as to communicate the encryption vectors that will be in use for the rest of the connection. For PSO Blue Burst, Packet 0x03 is used for this purpose.

Packet 0x02 is used for ship/block ports, and 0x17 is used for the login server.

Sending an 0x17 to a GameCube client will cause it to reply with an 0xDB, but only for the first 0x17 received in the client's session.

Dreamcast/Gamecube Packet Format

Bytes Meaning
0x00 Packet Type (0x02 or 0x17)
0x01 Flags (0x00)
0x02-0x03 Packet Size (At least 0x004C, everything after byte 0x4B will be ignored)
0x04-0x43 Copyright Message (see below)
0x44-0x47 Server Encryption Vector
0x48-0x4B Client Encryption Vector

PC Packet Format

Bytes Meaning
0x00-0x01 Packet Size (At least 0x004C, everything after byte 0x4B will be ignored)
0x03 Packet Type (0x02 or 0x17)
0x04 Flags (0x00)
0x04-0x43 Copyright Message (see below)
0x44-0x47 Server Encryption Vector
0x48-0x4B Client Encryption Vector

The Copyright Message that must be included in the above copyright message field is one of the two following things:

  • For Ship/Block Servers: "DreamCast Lobby Server. Copyright SEGA Enterprises. 1999"
  • For the Login Server: "DreamCast Port Map. Copyright SEGA Enterprises. 1999"