[phobos] RAII implementation for Socket and Selector
Jose Armando Garcia
jsancio at gmail.com
Mon Jun 20 16:24:09 PDT 2011
On Mon, Jun 20, 2011 at 7:53 PM, Masahiro Nakagawa <repeatedly at gmail.com> wrote:
> Hi Jose.
>
> Skim the code.
>
> - Your Address struct seems to be a Resolver. I think std.net.dns or
> std.net.resolver is better.
> - Will you provide Address representaion?
> -- e.g.
> https://bitbucket.org/repeatedly/scrap/src/11fbb4a95602/socket.d#cl-598
> --- This is half implementation. Lacks some functions such as isBroadcast,
It is my understanding that getaddrinfo should do that without
contacting a DNS. For example: Address.lookup("111.111.111.111",
"3000") should give you an IPv4 address without talking to a DNS. Or
do you want to turn the binary representation of the address into an
Address?
> etc...
> - How to define SSLSocket?
If we can bundle openssl, then we should probably provide that. Need
to think about the design.
> - I think 'self' is bad name. It's a not clear.
Any Suggestions?
>
> Later, I read Selector.
Thanks.
More information about the phobos
mailing list