Choice TCP or UDP

kyoku
edited March 2011 in Photon Server
I have a question, if my game have some socket transmission are not allowed error, for example, game coin. Should I transmit it (Game coin) by using Photon tcp socket , or Could I trust the Photon UDP transfer and using the UDP all the way ?

Comments

  • Boris
    Boris ✭✭
    if you send it reliable over udp you can trust that it arrives. no need to use tcp for that.
  • Thank you very much. ^^
  • You should use UDP, make as much unreliable as possible and use separate "channels" for distinct conversations (events that must be in sequence).