Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Winsock API 2

Status
Not open for further replies.

instar4per

Programmer
Jan 21, 2002
48
US
I'm getting my feet wet in certain aspects of Winsock API. Some of it, I've got down (making a socket, connecting it, recieving data). Other parts, I don't have. If anyone could provide insight to:

-In the 'send' call, there is an argument named flags. What are the values that could go in here to do what things? Is it possible to make a chunk of data be 'OOB' by setting a certain flag?

-Also, I can set up a socket to listen, but how do I have a socket accept? It's pretty useless to have listening sockets if I can't do anything with them :).

Any insight on how to do simulate the ConnectionRequest event of the Winsock OCX using API, and the Accept method also using API, even shortcuts and quick&dirties, would be appreciated.

Thanks, guys!
-Bryan
 
Bryan,

If you're really looking to get into Winsock and don't mind a bit of investment you could do a lot worse that getting a copy of 'Windows Sockets Network Programming' by Bob Quinn & Dave Shute ( ISBN 0-201-63372-8 ). I've found it really useful & sure puts this stuff in perspective.

You can also check out

Hope this helps.

Regards,

Terry
 
Thanks for the replies guys! :) I'll hunt through those sites and see what I can't come up with.

-Bryan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top