On Mon, 2005-02-21 20:48:54 +0200, Maxim <[EMAIL PROTECTED]>
wrote in message <[EMAIL PROTECTED]>:
> I'm writing my first Linux program that should connect via tftp 
> connection to server and get some file. I'm trying to find 
> documentation on tftp API that I can use. I need it as simple as 
> possible. Could anybody to help me with it? Does anybody has example of 
> such code? 

First of all, remember that TFTP is a connection-less protocol. Also,
there isn't much of an "API". There's a formal description of the TFTP
protocol (http://www.ietf.org/rfc/rfc1350.txt,
http://www.ietf.org/rfc/rfc2090.txt, http://www.ietf.org/rfc/rfc2347.txt,
http://www.ietf.org/rfc/rfc2348.txt and
http://www.ietf.org/rfc/rfc2349.txt). Also, there
are at least three working implementation available for Linux:

- ftp://ftp.mamalinux.com/pub/atftp/
- ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/ and
  ftp://ftp.uk.linux.org/pub/linux/Networking/netkit-devel/
- http://www.kernel.org/pub/software/network/tftp/

MfG, JBG

-- 
Jan-Benedict Glaw       [EMAIL PROTECTED]    . +49-172-7608481             _ O _
"Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg  _ _ O
 fuer einen Freien Staat voll Freier BÃrger" | im Internet! |   im Irak!   O O 
O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));

Attachment: signature.asc
Description: Digital signature

Reply via email to