hehe, had to make my callback function extern(C). Can circumvent this or do
I have to keep using extern(C) callback functions?
is there somebody willing to D'ify my bindings? or how should I go about
doing that myself?
If anyone wants to help with my bindings (maybe they'll ever make it into
deimos) You can check them out here:
https://github.com/maartenvd/d-libcap-bindings any help/suggestions are
welcome.
I have created some bindings. I'm pretty sure they're not really good (I
didn't port micros and certain other files) but if I have time I'm going to
post them on github.
A pretty annoying problem is that I have to use toStringz and that I can't
write C strings with std.stdio (have to use
and why on earth is timeval declared in std.socket instead of std.time?
On Sunday, March 04, 2012 18:10:57 maarten van damme wrote:
and why on earth is timeval declared in std.socket instead of std.time?
std.socket is an old module and predates all of Phobos' current time stuff. It
should probably use a core.time.Duration, but it hasn't been changed to do
that.
-
On Sunday, March 04, 2012 22:58:08 maarten van damme wrote:
-how to convert c strings to d strings
Use std.conv.to.
auto str = to!string(cstr);
-how to avoid having to call tostringz all the time
You're probably out of luck on this one. If you're passing a string to C, you
need to convert
Thank you, now only have to understand the access violation error.
I didn't knew to!targettype was so powerful.
hello,
I want to use raw sockets but there is a lack of documentation on how to
use them in D.
Is there somewhere I can read more about them or has someone succesfully
used them?
Thank you,
maarten
Am 29.02.2012 20:44, schrieb maarten van damme:
hello,
I want to use raw sockets but there is a lack of documentation on how to
use them in D.
Is there somewhere I can read more about them or has someone succesfully
used them?
Thank you,
maarten
Hello,
I would use libpcap for that, since
I've tried porting libcap once but I failed miserably. If I'd succeed in
porting they wouldn't be of good quality.
On 1 March 2012 10:05, maarten van damme maartenvd1...@gmail.com wrote:
I've tried porting libcap once but I failed miserably. If I'd succeed in
porting they wouldn't be of good quality.
Not porting, writing bindings for it. Its pretty easy. just convert
the declarations into D extern (C) {
thank you, I'll give it a try.
One of my previous attempts failed because I didn't know what was really
needed to include in the bindings and what was excess. I'm going to post
what I have in a week, hope it works out.
12 matches
Mail list logo