Basic TCP Chat
Blitz3D Forums/Blitz3D Beginners Area/Basic TCP Chat
| ||
I added a TCP Chat to the Code archives to show some easy functions. There were some people, including myself, that were asking about TCP and UDP networking code. Thought I'd try to make the simplist one I could. Heres a link to the Basic TCP Chat... http://www.blitzbasic.com/codearcs/codearcs.php?code=2263 Theres also a very simple UDP Chat under the TCP chat entry to show the same using UDP instead. Heres a link to the Basic UDP Chat... http://www.blitzbasic.com/codearcs/codearcs.php?code=2261 Take a look and let me know what you think. Thanks. |
| ||
Thanks Xyle, thats a really nice example of how to use TCP. I'm just wondering though, how you actually went about understanding network programming? I've looked on google about TCP, but what I've read so far doesn't really relate to how I could set it up using the blitz functions. How did you do it? Was it just trial and error and examining other peoples code, or is there a really basic step-by-step tutorial on this somewhere? Cheers, 6 |
| ||
I start with reading the documentation, read the tcp commands under the 2d commands, under networking. That lists all available commands and also gives you an even more basic example of a quick tcp connection. Once I had an inkling of what I was looking for, I went straight to trial and error. When I needed more info on certain things, I will do a search through the forums. I constantly look for info on the forums. Just do keyword searches for the command your looking for. Alot of times I will look at the code archives for demonstrations of code for certain things. I spend ALOT of time doing code, its a humungous learning curve for me, but I make progress on my game every week. To me it doesnt matter if I complete my game or not, I am having way too much fun making it. lol Thanks for the reply |