LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 02-27-2012, 11:27 AM   #1
Folkes
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Rep: Reputation: Disabled
UDP transfer


Hi.... I need some help.
If I want to make connection betwen 2 Laptop with UDP, theres is, the Laptop one (client) must send sample file in several time with checksum, and receiver must receive one by one of file and will display all of data at the end.
Can you help me make the source program for client and server..?? thank you..
 
Old 02-27-2012, 12:02 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Is this a one-off, or a more formal application?

If a one-off, I'd simply hack something together with nc(1) and sha1sum(1). If a more formal app, I'd learn Perl.
 
Old 02-27-2012, 03:10 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939
I suggest that you bear in mind two things:
  1. You are contemplating the use of the wrong protocol. The UDP protocol was not designed to do the things that the TCP/IP protocol stack was designed to do.
  2. You are contemplating "to do a thing that has already been done." Don't do that.
 
Old 02-27-2012, 03:19 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Good point about UDP. (In retrospect, OP's problem sounds contrived enough to be a homework assignment.)
 
Old 02-27-2012, 07:09 PM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939
Dunno... I actually had the very brief misfortune of being tangentally involved with a group that was trying to use the so-called Andrew File System (AFS), a moldy-oldy long distance networking protocol that apparently was still being used by someone on Wall Street who had never heard of what (e.g.) Brocade Systems has been doing for the past ten years. That piece of crash-and-burn-ware used UDP. (Apparently because the TCP/IP protocol had not been finalized at the time it was started.)

Fortunately for me, that engagement was stillborn.
 
  


Reply



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
UDP File transfer Error poeyice Programming 6 05-13-2011 12:51 AM
TCP / UDP File Transfer in C or C++ mending73 Programming 1 10-27-2010 05:53 PM
How to Log TCP and UDP errors during data transfer? luisk Linux - Networking 4 08-20-2009 07:11 AM
How to optimise file transfer through UDP sockets? montylee Programming 12 07-03-2008 01:31 AM
1 Mb data transfer using udp protocol swamy suresh Programming 1 05-12-2008 08:40 AM

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

All times are GMT -5. The time now is 12:53 AM.

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