Skip to main content
gamedev.net
🔒 Locked

SOCKET

Started by NumbChucks Feb 14, 2003 at 1:17 PM 4 replies 750+ views
Original Post
NumbChucks
NumbChucks
Hello, What is the function that I need to call, to fill in a SOCKET type. Here is a code snip... SOCKET Socket=NULL; As you can see, I initialized it to NULL, since I do not know the function. I will look up the parameters, if I just knew the function, lol. I am using Visual C++ 6.0, and the help files are horrible Thanks you my friends.
There is a new song that goes a little something like this....He was a skater boy, she said masterbater boy.He wasn't good enough to bang.
niyaw
niyaw
a socket's "uninitialized" value is INVALID_SOCKET (-1), not 0.

as for how to create one - ask google.

you can start here.

[edited by - niyaw on February 14, 2003 2:26:17 PM]
NumbChucks
NumbChucks
thanks
There is a new song that goes a little something like this....He was a skater boy, she said masterbater boy.He wasn't good enough to bang.
SyntheticHate
SyntheticHate
WSAShutdown() seems like a logical name for the function to call when you''re done with winsock, but it''s actually WSACleanup(). I just thought I should let you know.
Fruny
Fruny
quote:
Original post by SyntheticHate
WSAShutdown() seems like a logical name for the function to call when you''re done with winsock, but it''s actually WSACleanup(). I just thought I should let you know.


That''s probably because in the BSD socket world shutdown() already is a function (I assume WSAShutdown() may exist too, does it ?) with a well defined meaning : to close one or the other ''direction'' (read or write) of a connection (which is different from close())


[ Start Here ! | How To Ask Smart Questions | Recommended C++ Books | C++ FAQ Lite | Function Ptrs | CppTips Archive ]
[ Header Files | File Format Docs | LNK2001 | C++ STL Doc | STLPort | Free C++ IDE | Boost C++ Lib | MSVC6 Lib Fixes ]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.