Posted by jjthebear on 07:54:00 03-24-2003
Hi everybody, my name is Jeff Jensen and I'm a 15 year old programmer, attending High Tech High in San Diego, California. I work mainly with OpenGL programming 3d games, and now I'm trying to make a multiplayer game via winsock. The first step to making a multiplayer game should be the design. However, I never take the best route so instead I'm writing the network code first. I wanto use a server-client model. I have a nice little socket establishment program written, that lets you pick a port and and a server to connect to and send a message to. I also wrote a server app that listens on a specified port for incoming connections, and unfortunatly when I try and connect to the computer running the server app, the connect() function fails. I'm kindof amiss on why this could occur. The only thing I can think of is that my router that connects my two computers is blocking the port being chosen on the server computer.
So, to bypass this I've decided to try to write a program that retrieves the HTML at a specified host. This however goes into the http specification (which nobody actually seems to have). I was considering reading through the mozilla source code to find out what they do about it, and what data they actually send out to port 80 on the host to retrieve the html. Does anybody know anything about my woes and troubles?
As a side note, some of you guys need to step it up a notch in your programming...
Posted by jjthebear on 12:38:00 03-25-2003
Well I can see there's not much help here on this topic, but I did indeed resolve the problem. It turnes out the function recv() functions very strangely (like all M$ functions...)
Posted by dxprog on 23:43:00 03-25-2003
Sorry, never dealt with winsock bebfore.
[addsig]
Posted by jjthebear on 00:19:00 03-26-2003
dxprog - what do you know about direct sound? I'm making a new game and I want it to have sound
Posted by dxprog on 04:40:00 03-26-2003
Ahhh. Now there's something I know. Depends what version of Dx? I know 7 and 8.
_________________
When I got VB, i could have flown without thrusters and shot down TIE Interceptors just by spitting at them.
[ This Message was edited by: dxprog on 2003-03-26 04:40 ]
Posted by Yjo on 22:42:00 03-28-2003
http://www.ecst.csuchico.edu/~beej/guide/net/ is a great tutorial for network programming, esp TCP/IP. It also has a small section for getting socket stuff to work under winsock
Of course, if you're a DX programmer in windows, the best idea for networked gaming might be to use DirectPlay - http://www.gamedev.net/reference/articles/article764.asp, which wraps up all the available protocols for you, so you can handle inter-machine communications in exactly the same way, regarding on whether the user wants to connect using TCP/IP, IPX, null modem cable or whatever.
Posted by neonbjb on 13:48:00 04-10-2003
what high school?? never heard of it? do they actually offer 3d programming classes? At Troy High School (myn) they only provide those gay AP comp sci classes that teach you things you already know... damn