Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 21st, 2006, 4:09 PM   #1
ShadowAssasin
Programmer
 
ShadowAssasin's Avatar
 
Join Date: Jun 2006
Location: New York
Posts: 43
Rep Power: 0 ShadowAssasin is on a distinguished road
socket api

I'd greatly appreciate it if anyone can tell me where i could find the native c++ socket api documentation/reference. (socket.h)
__________________
It's not complex if you know what you're doing...
ShadowAssasin is offline   Reply With Quote
Old Jun 21st, 2006, 4:34 PM   #2
frankish
Hobbyist Programmer
 
frankish's Avatar
 
Join Date: Oct 2005
Location: Ohio
Posts: 177
Rep Power: 0 frankish is an unknown quantity at this point
Try using libnet. It's cross platform.
frankish is offline   Reply With Quote
Old Jun 21st, 2006, 7:17 PM   #3
Mad_guy
Hobbyist Programmer
 
Mad_guy's Avatar
 
Join Date: Oct 2004
Location: Sandstorm, Techno Club
Posts: 239
Rep Power: 5 Mad_guy is on a distinguished road
Send a message via AIM to Mad_guy Send a message via MSN to Mad_guy
Google "Beej's guide to network programming." It's a great tutorial for starting network programming, and works under windows too (on win32 you just have to include winsock2.h and startup winsock for the most part) with a little editing.

Quote:
Try using libnet. It's cross platform.
Okay, but he wasn't asking about that now was he?
__________________
os: mac os 10.5.4
revision control: git
editor: emacs

site
Mad_guy is offline   Reply With Quote
Old Jun 21st, 2006, 10:48 PM   #4
ShadowAssasin
Programmer
 
ShadowAssasin's Avatar
 
Join Date: Jun 2006
Location: New York
Posts: 43
Rep Power: 0 ShadowAssasin is on a distinguished road
(@mad_guy) yeah its pretty good, thanks.
(@frankish): (I'd use ACE if that was the point) Thanks but it wouldn't help. Im reading the Richard Stevens tcp/ip implementation vol 2. (great fuckin book) Its a detailed guide reviewing every line of networking code in the bsd 4.3 kernel. These books can turn someone into a networking sage.

I've read (not in the stevens book)that the socket.h api is very error prone and overly complex; I want to try out a few things myself...
__________________
It's not complex if you know what you're doing...
ShadowAssasin is offline   Reply With Quote
Old Jun 21st, 2006, 11:20 PM   #5
frankish
Hobbyist Programmer
 
frankish's Avatar
 
Join Date: Oct 2005
Location: Ohio
Posts: 177
Rep Power: 0 frankish is an unknown quantity at this point
Quote:
Originally Posted by Mad_guy
Okay, but he wasn't asking about that now was he?
It comes with documentation.
frankish is offline   Reply With Quote
Old Jul 13th, 2006, 9:19 AM   #6
ShadowAssasin
Programmer
 
ShadowAssasin's Avatar
 
Join Date: Jun 2006
Location: New York
Posts: 43
Rep Power: 0 ShadowAssasin is on a distinguished road
What socket api do you guys use for c++?
__________________
It's not complex if you know what you're doing...
ShadowAssasin is offline   Reply With Quote
Old Jul 13th, 2006, 10:43 AM   #7
Eoin
Hobbyist Programmer
 
Eoin's Avatar
 
Join Date: Jun 2006
Location: Ireland
Posts: 152
Rep Power: 3 Eoin is on a distinguished road
I use Boost.Asio, It hasn't been officially accepted by Boost yet but is in the review stages and will surely be accepted in the a future release.
__________________
Visit my website BinaryNotions.
Eoin is offline   Reply With Quote
Old Jul 13th, 2006, 10:47 AM   #8
Game_Ender
Professional Programmer
 
Game_Ender's Avatar
 
Join Date: May 2006
Location: Maryland, USA
Posts: 306
Rep Power: 3 Game_Ender is on a distinguished road
Boost.Asio will be in the next version boost:
Quote:
Originally Posted by Boost.Asio News
20 June 2006 - asio version 0.3.7 (development) released. This release includes major interface changes arising out of the Boost review of asio. The asio library was accepted into Boost and will appear in a future Boost release.
Game_Ender is offline   Reply With Quote
Old Jul 13th, 2006, 10:56 AM   #9
ShadowAssasin
Programmer
 
ShadowAssasin's Avatar
 
Join Date: Jun 2006
Location: New York
Posts: 43
Rep Power: 0 ShadowAssasin is on a distinguished road
You ever concider using the native api eoin?
__________________
It's not complex if you know what you're doing...
ShadowAssasin is offline   Reply With Quote
Old Jul 13th, 2006, 11:06 AM   #10
Game_Ender
Professional Programmer
 
Game_Ender's Avatar
 
Join Date: May 2006
Location: Maryland, USA
Posts: 306
Rep Power: 3 Game_Ender is on a distinguished road
Boost.Asio is pretty sexy , why be platform dependent?
Game_Ender is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:43 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC