Re: D Lang Socket Programming Example

2015-09-25 Thread bitwise via Digitalmars-d
On Saturday, 26 September 2015 at 02:00:42 UTC, Kapps wrote: On Saturday, 26 September 2015 at 00:15:39 UTC, bitwise wrote: On Friday, 25 September 2015 at 07:42:25 UTC, vyarthrot wrote: On Friday, 6 September 2013 at 20:47:54 UTC, Savsak wrote: [...] Try this simple socket programming

Re: D Lang Socket Programming Example

2015-09-25 Thread Kapps via Digitalmars-d
On Saturday, 26 September 2015 at 00:15:39 UTC, bitwise wrote: On Friday, 25 September 2015 at 07:42:25 UTC, vyarthrot wrote: On Friday, 6 September 2013 at 20:47:54 UTC, Savsak wrote: [...] Try this simple socket programming http://csharp.net-informations.com/communications/csharp-socke

Re: D Lang Socket Programming Example

2015-09-25 Thread bitwise via Digitalmars-d
On Friday, 25 September 2015 at 07:42:25 UTC, vyarthrot wrote: On Friday, 6 September 2013 at 20:47:54 UTC, Savsak wrote: Hi Friends, Socket programming with the D programming language is the most simple way how to do it For example, the sample with Tango, but not by phobos How do I do this

Re: D Lang Socket Programming Example

2015-09-25 Thread vyarthrot via Digitalmars-d
On Friday, 6 September 2013 at 20:47:54 UTC, Savsak wrote: Hi Friends, Socket programming with the D programming language is the most simple way how to do it For example, the sample with Tango, but not by phobos How do I do this with a simple, but phobos import tango.io.Stdout; import tan

Re: D Lang Socket Programming Example

2013-09-08 Thread Ramon
On Sunday, 8 September 2013 at 10:42:22 UTC, Savsak wrote: ... In the example you give, but I receive this error during compilation. savsak:~ savsak$ dmd /Users/savsak/Desktop/test.d ld: library not found for -lphobos2 collect2: ld returned 1 exit status --- errorlevel 1 To help dicebot and

Re: D Lang Socket Programming Example

2013-09-08 Thread Dicebot
On Sunday, 8 September 2013 at 10:42:22 UTC, Savsak wrote: Thanks acehreli In the example you give, but I receive this error during compilation. savsak:~ savsak$ dmd /Users/savsak/Desktop/test.d ld: library not found for -lphobos2 collect2: ld returned 1 exit status --- errorlevel 1 Your dm

Re: D Lang Socket Programming Example

2013-09-08 Thread jerro
It won't work. (This is why my project uses IP sockets for local communication, even on Linux) That has already been fixed in the version of Phobos on Github (I've marked it as fixed now, didn't know about that issue on bugzilla before).

Re: D Lang Socket Programming Example

2013-09-08 Thread Savsak
On Friday, 6 September 2013 at 21:02:09 UTC, Ali Çehreli wrote: On 09/06/2013 01:47 PM, Savsak wrote: > Hi Friends, > > Socket programming with the D programming language is the most simple > way how to do it > > For example, the sample with Tango, but not by phobos > > How do I do this with a s

Re: D Lang Socket Programming Example

2013-09-06 Thread Brian Schott
On Friday, 6 September 2013 at 21:19:51 UTC, Adam D. Ruppe wrote: On Friday, 6 September 2013 at 21:02:09 UTC, Ali Çehreli wrote: Here is a Phobos translation: server.bind(new InternetAddress(8080)); Not quite the same - the original used a Unix domain socket. I *think* if you replace tha

Re: D Lang Socket Programming Example

2013-09-06 Thread Ramon
On Friday, 6 September 2013 at 21:50:11 UTC, Brian Schott wrote: server.bind(new InternetAddress(8080)); Not quite the same - the original used a Unix domain socket. I *think* if you replace that line with a UnixAddress: http://dlang.org/phobos/std_socket.html#UnixAddress http://d.purema

D Lang Socket Programming Example

2013-09-06 Thread Savsak
Hi Friends, Socket programming with the D programming language is the most simple way how to do it For example, the sample with Tango, but not by phobos How do I do this with a simple, but phobos import tango.io.Stdout; import tango.net.Socket; import tango.net.ServerSocket; import tango.n

Re: D Lang Socket Programming Example

2013-09-06 Thread Adam D. Ruppe
On Friday, 6 September 2013 at 21:02:09 UTC, Ali Çehreli wrote: Here is a Phobos translation: server.bind(new InternetAddress(8080)); Not quite the same - the original used a Unix domain socket. I *think* if you replace that line with a UnixAddress: http://dlang.org/phobos/std_socket.ht

Re: D Lang Socket Programming Example

2013-09-06 Thread Ali Çehreli
On 09/06/2013 01:47 PM, Savsak wrote: > Hi Friends, > > Socket programming with the D programming language is the most simple > way how to do it > > For example, the sample with Tango, but not by phobos > > How do I do this with a simple, but phobos > > > import tango.io.Stdout; > > import tango.