Opened 17 years ago

Closed 10 years ago

#17 closed Feature Requests (fixed)

Socket wrapper class

Reported by: nobody Owned by: chris_kohlhoff
Milestone: Component: asio
Version: None Severity: Problem
Keywords: Cc: chris@…

Description (last modified by Dave Abrahams)


I have only recently found I spent the 
first 4 years of my programming life in Smalltalk; I 
LOVED it and was very sad to see it (virtually) die. 
In the last (very painful) year I have been working in 
C++. A very smart friend of mine once told me "there 
is no sbustitute for hard work". I have been working 
hard in C++ and I am starting to get it ... a little 
bit. What I miss from Smalltalk is the abstraction. I 
have just begun my exploration of Templates and 
Containers/Iterators/Algorightms and I am very 
excited; they give back to me some of the abstraction 
I had in Smalltalk.

I have not noticed any Networking abstractions here. I 
was just reading 
which is an article about wrapping sockets. Does have any thoughts/interest in providing this 
sort of functionality? I would enjoy using abstract 
networking classes. 

If does not have the time/resources to do it 
at the moment I would be happy to contribute code, 
once my code is worth contributing. I suppose I should 

Are there issues with wrapping such topics that I 
prevent (a) useful implementation(s)?

I apologize if this is not the appropriate place to 
submit this thought or if I have missed the networking 
section somewhere.

This is a great site and I look forward to 
using/contributing to!

Tyler Ford
digital comms firmware engineer at Agilent Technologies

Change History (6)

comment:1 Changed 17 years ago by jmaurer

Logged In: YES 

Please subscribe to the "boost" maililng list hosted on, and post your suggestion there.  Before
doing so, however, I'd advise checking the message archive
for the previous discussion on the topic.  A boost socket
wrapper should be designed so that misuse is very hard or

comment:2 Changed 17 years ago by squirrel08

Logged In: YES 

You got my vote.  I learned to program in Java.  But really
like C++.  For the most part, I would rather use C++ anyday

Coming from Java, I must say that C++ sorely needs a Sockets
API.  And while threading in Java has lot of downpoints, it
is painless to whip up a threaded app.  I can't say the same
for C++.

The CommonC++ API is pretty good but no where near Java's
API, for abstraction, and ease of use.  CommonC++ is a
little flaky, although a great start.

While the boost libs look good for threading I was shocked
to see nothing on sockets.

comment:3 Changed 12 years ago by Dave Abrahams

Cc: chris@… added
Component: Noneasio
Description: modified (diff)
Owner: changed from nobody to az_sw_dude
Severity: Showstopper
Status: assignednew

Assigning to Jeff because we can't assign it to Chris and associate him with the ASIO component until he logs into Trac.

comment:4 Changed 10 years ago by christian.leutloff@…

Why is this feature request not closed? ASIO is a very good wrapper around a socket (and more). Therefore I would close this ticket. If something is missing one or more detailed feature requests should be opened.

comment:5 Changed 10 years ago by Dave Abrahams

Owner: changed from az_sw_dude to chris_kohlhoff

comment:6 Changed 10 years ago by Daniel James

Resolution: Nonefixed
Severity: ShowstopperProblem
Status: newclosed

I think this can be considered fixed by ASIO.

Note: See TracTickets for help on using tickets.