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)
from memory
auto MyStream = new SocketStream(new Socket(new TcpAddress("stakoverflow.com", 80)));
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With