Archived

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

winsock

Recommended Posts

Does anyone know of a good library or have written a good library to use winsock. If so then I would like to get my hands on it if you dont mind. I need to do some network program to send game info over the net and all the stuff I have read on it make it sound very frightening. I know if I use a library then it adds extra overhead to my program, but I am not worried about this. If you can help me out then leave a message here or send me an email djsteffe@unity.ncsu.edu "Now go away or I shall taunt you a second time" - Monty Python and the Holy Grail themGames Productions

Share on other sites
I don''t have a winsock library, but I do have a DirectPlay one you can have if you''re interested.

My Geekcode: "GCS d s: a14 C++$P+(++) L+ E-- W+++$ K- w++(+++) O---- M-- Y-- PGP- t X
R- tv+ b++ DI+(+++) D- G e* h!"
Decode my geekcode!
Geekcode.com

Asylum Entertainment

Share on other sites
one comes with mfc, but I think its just easier to use straight winsock. You may think its easier in the beginning to use a helper library, but when you want to resolve a name without blocking you''ll have some problems.

Share on other sites
is direct play ok to use for a mmorpg, well not real massive, maybe 100 - 200 users at one time ?
Email your library to me if you dont mind ziplux.

"Now go away or I shall taunt you a second time"
- Monty Python and the Holy Grail
themGames Productions

Share on other sites

Winsock''s not hard to use, if you''re planning on porting to UNIX later be wary of the WSA* calls that allow you to use Windows message processing, but if you''re just planning on using Windows, its simpler to do it the WSA* way.

I wrote a client/server message passing library on top for my stuff, if you''re interested in details, send email. I would recommend something simple to isolate you from details(especially client/server connection details).

Share on other sites
I have a generic wrapper class that I have coded around winsock.
It is simple and may help you develop a class that works for you...
It has simple calls like DHLSock::Open(), which sets up a listen socket waiting for clients,
and DHLSock::Read... You get the ideal.
Just send me email to my home account, that way I''m sure to send it to you.
Again, it is just a wrapper around the real generic winsock stuff

Dave "Dak Lozar" Loeser

• Forum Statistics

• Total Topics
628314
• Total Posts
2982022

• 9
• 9
• 13
• 11
• 14