LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-17-2003, 12:48 AM   #1
geo_h
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!!

thx

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

Last edited by geo_h; 09-17-2003 at 02:51 AM.
 
Old 09-17-2003, 03:05 AM   #2
Mohsen
Member
 
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, 06:27 AM   #3
geo_h
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Original Poster
Rep: Reputation: 0
http://www.ecst.csuchico.edu/~beej/guide/net/

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, 12:41 PM   #4
geo_h
LQ Newbie
 
Registered: Aug 2003
Posts: 8

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


Reply


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 04:28 PM
UNIX (Linux, BSD, etc) Programming :: UNIX kuphryn Programming 8 04-05-2004 12:50 AM
Unix socket programming - how to sent a file Scrag Programming 9 03-28-2004 10:54 PM
Where do network card config file locate in UNIX? woranl Linux - Networking 2 02-20-2004 09:35 AM
UDP socket programming question. niac Programming 6 03-02-2003 03:23 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:52 PM.

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