Review your favorite Linux distribution.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 09-16-2003, 11:48 PM   #1
LQ Newbie
Registered: Aug 2003
Posts: 8

Rep: Reputation: 0
newbie: unix network programming: UDP and send file

dear guys,

I need to write a programme that will use UDP to download a file from the server under unix.

So basically, a file is located at the unix server and i need to use the client to download the file.

I have written a small programme which allows the client to send out standard input (keyboard) and echo back from the server (using UDP). Where should I look into info about "SENDING files"? any hints would be GREAT!!


p.s. the file is meant to be a text file.

Last edited by geo_h; 09-17-2003 at 01:51 AM.
Old 09-17-2003, 02:05 AM   #2
Registered: Feb 2003
Location: Iran
Distribution: Solaris 10
Posts: 201

Rep: Reputation: 30
Make a google search using keywords BEEJ, UNIX socket programming. I've write such a code (usign TCP, which can be converted to UDP easily) by reading that manual. If you can not find that mail me to send you that manual (or my program).
Old 09-17-2003, 05:27 AM   #3
LQ Newbie
Registered: Aug 2003
Posts: 8

Original Poster
Rep: Reputation: 0

is this the one?

can u give me a bit of hints on where I should be look into for sending files?

I need to put the files into a fixed size (e.g. 512k) packet and then send it out.
Old 09-17-2003, 11:41 AM   #4
LQ Newbie
Registered: Aug 2003
Posts: 8

Original Poster
Rep: Reputation: 0
this is a really good tutorial (Beej)
i will read through the entire pdf file before i continue to write my programme!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why does Samba send malformed UDP packets to 137 and 138? The Dartman Linux - Networking 2 04-12-2004 03:28 PM
UNIX (Linux, BSD, etc) Programming :: UNIX kuphryn Programming 8 04-04-2004 11:50 PM
Unix socket programming - how to sent a file Scrag Programming 9 03-28-2004 09:54 PM
Where do network card config file locate in UNIX? woranl Linux - Networking 2 02-20-2004 08:35 AM
UDP socket programming question. niac Programming 6 03-02-2003 02:23 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:49 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration