Pocket Edition Login: Difference between revisions

From wiki.vg
Jump to navigation Jump to search
imported>Jython234
Added chunks note
imported>Jython234
mNo edit summary
Line 19: Line 19:
#'''S->C''' <code>0x83</code> DATA LoginStatus
#'''S->C''' <code>0x83</code> DATA LoginStatus
#'''S->C''' <code>0x87</code> DATA StartGame (send seed and spawn position)
#'''S->C''' <code>0x87</code> DATA StartGame (send seed and spawn position)
#'''S->C''' <code>0x86</code> DATA SetTime
#'''S->C''' ''Sends chunks to client''
#'''S->C''' ''Sends chunks to client''
#'''C->S''' <code>0x84</code> DATA Ready (client spawns)
#'''C->S''' <code>0x84</code> DATA Ready (client spawns)


[[Category:Pocket Minecraft]]
[[Category:Pocket Minecraft]]

Revision as of 21:40, 24 December 2014

Normal Login Sequence

C = Client
S = Server
B = Broadcast

Server searching

  1. C->B 0x01 ID_UNCONNECTED_PING_OPEN_CONNECTIONS
  2. S->C 0x1C ID_UNCONNECTED_PONG

Connecting a server

  1. C->S 0x05 ID_OPEN_CONNECTION_REQUEST_1 (different packet sizes until a correct response is sent)
  2. S->C 0x06 ID_OPEN_CONNECTION_REPLY_1
  3. C->S 0x07 ID_OPEN_CONNECTION_REQUEST_2
  4. S->C 0x08 ID_OPEN_CONNECTION_REPLY_2
  5. C->S 0x09 DATA ClientConnect
  6. S->C 0x10 DATA ServerHandshake
  7. C->S 0x13 DATA ClientHandshake
  8. C->S 0x82 DATA Login (sends username)
  9. S->C 0x83 DATA LoginStatus
  10. S->C 0x87 DATA StartGame (send seed and spawn position)
  11. S->C 0x86 DATA SetTime
  12. S->C Sends chunks to client
  13. C->S 0x84 DATA Ready (client spawns)