private import std.socket;
private import std.thread;
private import std.stream;
private import std.c.linux.linux;
private import std.c.linux.socket;
extern(C) int errno;
extern (C) uint sleep(uint);
extern(C) uint usleep(uint);
class asyncsocket_c : Stream
{
this(size_t bufferSize = 8192)
{
buffer = new ubyte[bufferSize];
updateAttribs();
}
void disconnect()
{
if (!s) return ;
s.close();
s = null;
updateAttribs();
}
void connect(char[] host, ushort port)
{
disconnect();
s = new TcpSocket(new InternetAddress(host,port));
updateAttribs();
}
bool isConnected()
{
return isopen;
}
void stop()
{
if (!t) return;
terminate = true;
t.wait();
t = null;
}
void start()
{
stop();
terminate = false;
t = new Thread(&run);
t.start();
}
bool isRunning()
{
return !terminate;
}
http://www.digitalmars.com/d/ - Website that tells the features of the language and has a compiler on the website.
D is a newer programming language that was released to the public just over a year ago. (January 2, 2007). Now I have heard from a few people they would like to see someone make a new Codebase from this language already and there isn't even Books/Guides out for the D language yet. I currrently have one Pre-Ordered on Amazon but thats besides the point.
Anyway, I was just wanting to know other coders views on this new language and if they have or will think about picking the new language up.