Archived

This topic is now archived and is closed to further replies.

DJ_GL

Sockets?

Recommended Posts

Is there a tutorial out there somewhere where I could learn how to work with sockets in my OpenGL projects? Also, how would you make a OpenGL game multiplayer? I need help...

Share this post


Link to post
Share on other sites
try learning BSD sockets .. they can be used both on linux and windows ..

in windows u need to use WSAStarup() and WSACleanup()

otherwise , its just normal sockets..

Share this post


Link to post
Share on other sites
Nate has some code to get you started with sockets on his page...

http://nate.scuzzy.net

It''s under his "OpenGL Tutor" section. (Look for glHTTP)

That should get you started. After you''re done with that you''ll want to do more I''m sure. Check out Beej''s Guide to Network Programming ( http://www.ecst.csuchico.edu/~beej/guide/net/ )

You might also want to stop by http://www.cyberport.com/~tangent/programming/winsock/
http://www.sockets.com/
and
http://www.sockaddr.com/

Beyond that, if you''re doing windows only stuff, you might want to check out Direct Play 8. I hear it''s nice, but won''t get the chance to play with it for a few months.

Hope this helped.

DN.

Share this post


Link to post
Share on other sites
I''ve written a tutorial describing how to build a Multi-user chat program in VB. Could easily be adapted to support multi-player game. Full source available on www.CornflakeZone.com and past articles section of gamedev.net

Later,
fs

http://www.CornflakeZone.com
//-- Modelling and animation in every dimension --//

Share this post


Link to post
Share on other sites
quote:
Original post by fshana

I''ve written a tutorial describing how to build a Multi-user chat program in VB.


I have the source code behind a chat program and server on my site in C++. It will only work in Windows since I use threading to do a lot of it, and I don''t know how to do threads in other OS''s.

"Finger to spiritual emptiness underlying everything." -- How a C manual referred to a "pointer to void." --Things People Said
Resist Windows XP''s Invasive Production Activation Technology!
http://druidgames.cjb.net/

Share this post


Link to post
Share on other sites