Working on sending data back to Minecraft

I can't seam to figure out how to send the data packets back to
Minecraft PE yet.