[boost] Re: sockets library question

2003-01-15 Thread Michel André
> If you are interested, please comment on it. I would especially like to
> know if the benefits of an Acceptor/Connector pattern would outweigh the
> additional complexity involved (specifically, how much more complicated
> the sample test.cpp file would get). Thanks!

Basically the beginning would change to with the interface proposed by the
socket library proposal in the sandbox by Hugo and me.

   address_info_list list("www.google.com", "http");
   address_info_list::iterator ibegin=list.begin(), iend=list.end();

std::cout << std::distance(ibegin,iend) << " addresses found\n";

if (ibegin == iend)
{
std::cout << "No address found" << std::endl;
return -1;
}

connector<> connector;
connector<>::data_connection_t connection;

connector.connect(connection, ibegin->protocol(),
ibegin->address());
basic_socket_stream sock(connection);

... the rest unchanged...

The design is based around the overall requirements in
http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?BoostSocket/S
ocketRequirements
originally written by Beman Dawes. The design is layered so you it can
enable complex uses for both servers and clients as well as simple uses as
the one you sketch.

/Michel

___
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost



Re: [boost] Re: sockets library question

2003-01-13 Thread Jeff Garland

>> Sockets seems to be actively under development at the moment. 
Most of
>> the activity seems to be on the Wiki at the moment though:  
>> 
>> http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?BoostSocket
>
>Ah!
>
>Yes, that looks more promising.
>
>Thanks for the redirect!

And more than that, there is a recent implementation based on the
Wiki web pages in the boost-sandbox.  Sockets is a library that 
has had a number of false starts.  Hugo Duncan has been
the key driver of this new effort, but I know he would love to
have help. I believe we have gradually built enough
base that if we could find a few volunteers with a some 
time to invest we could finally get a kernal of the library
available for review.

You can browse the boost sandbox socket stuff at:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/boost-sandbox/boost-
sandbox/libs/socket/

or find out more about download access to the sandbox from

http://sourceforge.net/projects/boost-sandbox/

Anyway, download it, compile it, update the Wiki -- give us
feedback...

Jeff







___
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost



Re: [boost] Re: sockets library question

2003-01-13 Thread Blue, Reginald V
"Alisdair Meredith" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> "Blue, Reginald V" wrote:
> 
> Sockets seems to be actively under development at the moment.  Most of
> the activity seems to be on the Wiki at the moment though:  
> 
> http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?BoostSocket

Ah!

Yes, that looks more promising.

Thanks for the redirect!
___
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost



[boost] Re: sockets library question

2003-01-13 Thread Alisdair Meredith
"Blue, Reginald V" wrote:


> The question I have is:  Is it likely for any of them to make it into the
> main CVS stream?

I'm quite the lurker too 

Sockets seems to be actively under development at the moment.  Most of
the activity seems to be on the Wiki at the moment though:  

http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?BoostSocket

I'm also lurking there.  Hoping to find time to get involved, but
there's never enough hours in the day :¬ (

-- 
AlisdairM
Team Thai Kingdom

___
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost