www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Network code example

reply Yoda <tmp-mail gmx.net> writes:
Hello,
I have found these language short time before.
I even found a german Book: http://www.steinmole.de/d/d_buch.pdf
But there is nothing writen about network programing.

Please can some one give me a small example code for a telnet conection?
Thanks! That will be great.

greeting
Yoda
May 18 2007
next sibling parent reply Dejan Lekic <dejan.lekic gmail.com> writes:
Yoda, I haven't seen someone did an implementation of the telnet protocol (RFC
can be found on http://www.faqs.org/rfcs/rfc854.html ), so I fear you must
write it.
For an example of socket programming refer to the sample application bundled
with DMD. Use Phobos reference manual to get some clues how to work with
Sockets.

Kind regards
Dejan
May 18 2007
parent Yoda <tmp-mail gmx.net> writes:
Dejan Lekic Wrote:

 Yoda, I haven't seen someone did an implementation of the telnet protocol (RFC
can be found on http://www.faqs.org/rfcs/rfc854.html ), so I fear you must
write it.
 For an example of socket programming refer to the sample application bundled
with DMD. Use Phobos reference manual to get some clues how to work with
Sockets.
 
 Kind regards
 Dejan
 

I have not the knowledge for a work like these. Thanks
May 18 2007
prev sibling parent reply BCS <ao pathlink.com> writes:
Reply to Yoda,

 Hello,
 I have found these language short time before.
 I even found a german Book: http://www.steinmole.de/d/d_buch.pdf
 But there is nothing writen about network programing.
 Please can some one give me a small example code for a telnet
 conection? Thanks! That will be great.
 
 greeting
 Yoda

under the digitalmars.D NG there is a thread title "Can't work with sockets" (5/6/07) There is a short "make a connection" program that should get you started
May 18 2007
parent reply Yoda <tmp-mail gmx.net> writes:
BCS Wrote:

 Reply to Yoda,
 
 Hello,
 I have found these language short time before.
 I even found a german Book: http://www.steinmole.de/d/d_buch.pdf
 But there is nothing writen about network programing.
 Please can some one give me a small example code for a telnet
 conection? Thanks! That will be great.
 
 greeting
 Yoda

under the digitalmars.D NG there is a thread title "Can't work with sockets" (5/6/07) There is a short "make a connection" program that should get you started

But I think it is for me not possible to make these up to work like telnet. Because I am not a programer, I am a beginner... I think, I have to wait...
May 18 2007
parent BCS <ao pathlink.com> writes:
Reply to Yoda,

 BCS Wrote:
 
 Reply to Yoda,
 
 Hello,
 I have found these language short time before.
 I even found a german Book: http://www.steinmole.de/d/d_buch.pdf
 But there is nothing writen about network programing.
 Please can some one give me a small example code for a telnet
 conection? Thanks! That will be great.
 greeting
 Yoda

sockets" (5/6/07) There is a short "make a connection" program that should get you started

But I think it is for me not possible to make these up to work like telnet. Because I am not a programer, I am a beginner... I think, I have to wait...

for the most part, telnet just takes the keyboard input and stuffs it down the pipe and take the stuff coming back over the pipe and stuffs it on the screen. You can get away with not knowing much about the actual standard if you don't plan on doing anything fancy.
May 18 2007