• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: telnet daemon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: telnet daemon


  • Subject: Re: telnet daemon
  • From: Terry Lambert <email@hidden>
  • Date: Fri, 21 Aug 2009 14:43:25 -0700

On Aug 21, 2009, at 11:59 AM, Ariel Feinerman wrote:
Hi developers,

I must write simple telnetd for Mac as an exam, but I have never write network programme, I look for exist telnet in the Darwin source to look at it, but I could not find ...
Is there telnet for Darwin?

I don't think looking at someone else's telnet/telnetd sources and then cribbing from that is going to demonstrate the knowledge and problem solving skills you were intended to demonstrate, if this was actually given as an exam project.


If this is an exam, I imagine it's intended to test your abilities in: reading specifications, implementing specifications, testing for interoperability, network socket programming, input/output multiplexing, termios programming, the concept of byte-stuffing and unstuffing, pty allocation, master/slave pty operations, etc.. Depending on specific requirements for what constitutes "simple", it may also include local user authentication, session management, PAM, and other topics.

If I had assigned this as an exam, and you come back with a full blown implementation, I'd challenge you, and if you could not explain your design decisions or the operation of the code adequately to make me believe the code was yours, that would be an insta-fail. I'd also challenge it if the coding style varied widely.

Try:

	<www.ietf.org/rfc/rfc854.txt>

and:

	<www.omnifarious.org/~hopper/telnet-rfc.html>

for starters, instead.  You might also want to look for the book:

	UNIX Network Programming

PS: Since most people use ssh instead of telnet to talk to Mac OS X machines, the Mac OS X telnetd is not as strongly maintained, and has a number of flaws when it comes to interacting with host authentication mechanisms and establishing sessions and session credentials in the kernel, so it might not be the best example from that perspective, either.

-- Terry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: telnet daemon
      • From: Ariel Feinerman <email@hidden>
References: 
 >telnet daemon (From: Ariel Feinerman <email@hidden>)

  • Prev by Date: Re: List of accounts
  • Next by Date: Re: List of accounts
  • Previous by thread: Re: telnet daemon
  • Next by thread: Re: telnet daemon
  • Index(es):
    • Date
    • Thread