tags:

views:

251

answers:

2

i was wondering how to use those phobos modules to use networking?

Or you can give a reference to how to use sockets (in a way similar or almost similar to D)

+1  A: 

std.socket.Socket is essentially a semi-thin wrapper around your operating system's native socket functions. For that reason, I recommend understanding the basics of socket programming in C first - there are plenty of examples for that - then, the std.socket API should be trivial.

For reference: http://digitalmars.com/d/2.0/phobos/std_socket.html

FeepingCreature
well, but it could be better with a useful link of "understanding the basics of socket programming in C"
zkp0s
http://www.beej.us/guide/bgnet/ could be useful
Oliver N.
+2  A: 

from memory

auto MyStream = new SocketStream(new Socket(new TcpAddress("stakoverflow.com", 80)));
BCS
Almost. TcpSocket.
FeepingCreature
Fixed .
BCS