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)
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)
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
from memory
auto MyStream = new SocketStream(new Socket(new TcpAddress("stakoverflow.com", 80)));