Author Topic: Does Tnet3 support UDP for P2P game?  (Read 2313 times)

chiuan

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 6
  • Posts: 11
    • View Profile
Does Tnet3 support UDP for P2P game?
« on: February 29, 2016, 10:45:34 AM »
Does Tnet3 support UDP for P2P game? :)
thanks !

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Does Tnet3 support UDP for P2P game?
« Reply #1 on: March 01, 2016, 06:32:27 AM »
You can use UDP to send packets if you like, yes -- although TNet's primary means of communication is via TCP.

To send UDP packets both client and server need to have UDP enabled and the client needs to use tno.SendQuickly instead of tno.Send. That's it.