Sockets?

Started by
4 comments, last by DJ_GL 22 years, 12 months ago
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...
Languages: C/C++ C# JavaAPIs: Win32 OpenGL DirectXWeb: &#106avascript Perl JSP PHP-MySQL Oracle Database Programming</span><a href='http://www.ethereal-studios.com'>http://www.ethereal-studios.com</a></a>
Advertisement
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..

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.
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 --//
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/
Thanks guys! I hope that I can compile all this info into good use in my projects.
Languages: C/C++ C# JavaAPIs: Win32 OpenGL DirectXWeb: &#106avascript Perl JSP PHP-MySQL Oracle Database Programming</span><a href='http://www.ethereal-studios.com'>http://www.ethereal-studios.com</a></a>

This topic is closed to new replies.

Advertisement