Pocket Edition FAQ: Difference between revisions
Jump to navigation
Jump to search
imported>Shoghicp m (→Server searching: ocd) |
imported>Shoghicp (→Normal Login Sequence: added format plus id's) |
||
| Line 6: | Line 6: | ||
=== Server searching === | === Server searching === | ||
#'''C->B''' 0x02 ID_UNCONNECTED_PING_OPEN_CONNECTIONS | #'''C->B''' <code>0x02</code> ID_UNCONNECTED_PING_OPEN_CONNECTIONS | ||
#'''S->C''' 0x1C ID_UNCONNECTED_PONG | #'''S->C''' <code>0x1C</code> ID_UNCONNECTED_PONG | ||
=== Connecting a server === | === Connecting a server === | ||
#'''C->S''' 0x05 ID_OPEN_CONNECTION_REQUEST_1 (different packet sizes until a correct response is sent) | #'''C->S''' <code>0x05</code> ID_OPEN_CONNECTION_REQUEST_1 (different packet sizes until a correct response is sent) | ||
#'''S->C''' 0x06 ID_OPEN_CONNECTION_REPLY_1 | #'''S->C''' <code>0x06</code> ID_OPEN_CONNECTION_REPLY_1 | ||
#'''C->S''' 0x07 ID_OPEN_CONNECTION_REQUEST_2 | #'''C->S''' <code>0x07</code> ID_OPEN_CONNECTION_REQUEST_2 | ||
#'''S->C''' 0x08 ID_OPEN_CONNECTION_REPLY_2 | #'''S->C''' <code>0x08</code> ID_OPEN_CONNECTION_REPLY_2 | ||
#'''C->S''' 0x09 DATA ClientConnect | #'''C->S''' <code>0x09</code> DATA ClientConnect | ||
#'''S->C''' 0x10 DATA | #'''S->C''' <code>0x10</code> DATA ServerHandshake | ||
#'''C->S''' 0x13 DATA | #'''C->S''' <code>0x13</code> DATA ClientHandshake | ||
#'''C->S''' 0x82 DATA Login (sends username) | #'''C->S''' <code>0x82</code> DATA Login (sends username) | ||
#'''S->C''' 0x83 DATA LoginStatus | #'''S->C''' <code>0x83</code> DATA LoginStatus | ||
#'''S->C''' 0x87 DATA StartGame (send seed and spawn position) | #'''S->C''' <code>0x87</code> DATA StartGame (send seed and spawn position) | ||
#'''C''' Generates base map with seed | #'''C''' ''Generates base map with seed'' | ||
#'''C->S''' 0x84 DATA Ready (client spawns) | #'''C->S''' <code>0x84</code> DATA Ready (client spawns) | ||
[[Category:Pocket Minecraft]] | [[Category:Pocket Minecraft]] | ||
Revision as of 05:03, 6 December 2012
Normal Login Sequence
C = Client S = Server B = Broadcast
Server searching
- C->B
0x02ID_UNCONNECTED_PING_OPEN_CONNECTIONS - S->C
0x1CID_UNCONNECTED_PONG
Connecting a server
- C->S
0x05ID_OPEN_CONNECTION_REQUEST_1 (different packet sizes until a correct response is sent) - S->C
0x06ID_OPEN_CONNECTION_REPLY_1 - C->S
0x07ID_OPEN_CONNECTION_REQUEST_2 - S->C
0x08ID_OPEN_CONNECTION_REPLY_2 - C->S
0x09DATA ClientConnect - S->C
0x10DATA ServerHandshake - C->S
0x13DATA ClientHandshake - C->S
0x82DATA Login (sends username) - S->C
0x83DATA LoginStatus - S->C
0x87DATA StartGame (send seed and spawn position) - C Generates base map with seed
- C->S
0x84DATA Ready (client spawns)