Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: Question: TCP/UDP  (Read 1227 times)

0 Members and 1 Guest are viewing this topic.
Question: TCP/UDP
« on: July 31, 2006, 06:57:04 am »
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 4588
Possible to do UDP and TCP, together? Like, UDP for walking while TCP for everything else ^_^.
Logged
the a o d c
Re: Question: TCP/UDP
« Reply #1 on: July 31, 2006, 07:10:58 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 212
udp and tcp are to diff kind of ports. so um it prob fr somethin else i dont know.
Logged
Re: Question: TCP/UDP
« Reply #2 on: July 31, 2006, 08:25:17 am »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6629
Yep, thats actually what quite a few games do, they use TCP for important packets like chat messages / scene update message and UDP for unimportant ones such as player movement. Though its usually a better idea to just implement your own layer on top of UDP to do reliable packets if you really need them.
Logged
Re: Question: TCP/UDP
« Reply #3 on: July 31, 2006, 08:30:16 am »
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 4588
Its just, TCP + Walking = KABOOM. Thanks for the help Helios. Did your ZO use UDP for walking?
Logged
the a o d c
Re: Question: TCP/UDP
« Reply #4 on: July 31, 2006, 08:32:03 am »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6629
Its just, TCP + Walking = KABOOM. Thanks for the help Helios. Did your ZO use UDP for walking?
Yeh I used mixed protocols for different things, I mainly used TCP for login / chat stuff and UDP for walking / updating the scene.

Nowadays though its probably a better idea to implement your own 'reliable packet' layer over UDP to keep the speed up.
Logged
Re: Question: TCP/UDP
« Reply #5 on: July 31, 2006, 08:41:46 am »
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 4588
Time isnt on my side =( Thanks for the help.
Logged
the a o d c
Re: Question: TCP/UDP
« Reply #6 on: July 31, 2006, 06:49:00 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 212
well the server only works if you allow open ports on udp and tcp.
Logged
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.232 seconds with 51 queries.

anything