• Welcome to Valhalla Legends Archive.
 

Help on winsock

Started by ThatOldFalcon, June 24, 2003, 03:44 PM

Previous topic - Next topic

ThatOldFalcon

I have been trying to learn the basics of winsock stuff but none of the books I looked in were helpful on this topic. Can anyone tell me a good book or other source for help with winsock connection stuff?

Eibro

Eibro of Yeti Lovers.

______

winsocks, my guess some type of VB?

DarkMinion

What?  C++ doesn't use winsock?  ::)

Camel

Quote from: DarkMinion on June 24, 2003, 06:16 PM
What?  C++ doesn't use winsock?  ::)

Nobody calls them "winsocks" in C, just "sockets."

DarkMinion

Really?  I suppose that's why most of the socket API functions start with "WS", which stands for "winsock".  Please Camel, you make it too easy...

Zakath

He has a point though...in VB the actual object you put on the form is called a "Winsock," isn't it?

In C++ (and I know you know this, DM :P) you declare it as a socket.
Quote from: iago on February 02, 2005, 03:07 PM
Yes, you can't have everybody...contributing to the main source repository.  That would be stupid and create chaos.

Opensource projects...would be dumb.

Yoni

But you still #include winsock2.h!

iago

Yes, they both eventually use the winsock api, which uses sockets.  The socket your declare is a socket, but you need winsock to play with it.
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Camel

I didn't say it is incorrect to call them winsocks in C++; it's perfectly correct. However, nobody (that I know at least) puts the extra three letters in because, unless one is trying to specify the difference between the two, it's practically redundant.

iago

I do, and you know me.  If I'm talking about linux or general sockets, I call them sockets.  But if I'm talking about using them in windows, I call it winsock :)
This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


Camel

Quote from: iago on June 25, 2003, 06:30 PM
I do, and you know me.  If I'm talking about linux or general sockets, I call them sockets.  But if I'm talking about using them in windows, I call it winsock :)

There is no spoon!

Zakath

Alrighty, from now on I will consistently say "Berkeley sockets." :P
Quote from: iago on February 02, 2005, 03:07 PM
Yes, you can't have everybody...contributing to the main source repository.  That would be stupid and create chaos.

Opensource projects...would be dumb.

Camel

Quote from: Zakath on June 25, 2003, 09:18 PM
Alrighty, from now on I will consistently say "Berkeley sockets." :P

I doubt that highly.

smoke

Berkeley doesn't quite fully encapsulate the true name.  BSD Sockets or more precisely, Berkeley Software Distribution Sockets.  So, if you want to start calling them by their full names:

Windows Sockets
Berkeley Software Distribution Sockets

Now, if people start pasting those full names into posts, somebody needs to grab either the riffle or whip.  I don't think anybody wants to read a post where Berkeley Software Distribution Sockets amounts for more than 50% of the entire post.  That's the reason for having TLA's (three letter acroynms) and abbreviations.

Winsock
BSD sockets

furthermore, Winsock is actually MS's slight deviation of standard technology which they proceeded to name after their own software.  (no suprised there eh?)  It actually should be named something like Windows BSD sockets or MSBSD sockets.  Oh god that would be sacreligous though.  That is why in general it is best to refer to all forms and derivations of BSD sockets as just plain sockets.