Hey MrMike! I've just finished reading the networking chapter, but I just wanted some clarification on the subject.
Was wondering which is actually better then to use in a real game? TCP or UDP? As you've stated that UDP is fairly lightweight, but doesn't have a duplex connection like TCP which I gather is therefore a more reliable means??
I personally thought that TCP would be much better, since then you can make sure game events are received/sent in correct order, received/sent consistently, etc. on top of which, as stated in the book, you could actually use a streaming method? The thing that put doubt in my mind is that the book also suggests that most games make use of UDP.
Was wondering which is actually better then to use in a real game? TCP or UDP? As you've stated that UDP is fairly lightweight, but doesn't have a duplex connection like TCP which I gather is therefore a more reliable means??
I personally thought that TCP would be much better, since then you can make sure game events are received/sent in correct order, received/sent consistently, etc. on top of which, as stated in the book, you could actually use a streaming method? The thing that put doubt in my mind is that the book also suggests that most games make use of UDP.
If you put your mind to it, you can accomplish anything.