LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-03-2003, 08:56 AM   #1
frostmagic
LQ Newbie
 
Registered: Sep 2003
Posts: 28

Rep: Reputation: 15
Some programming problems


Could some one help? i am currently doing a video streaming platform. I have encounter some problems in it. I break down the file into small packets and send it over to the client from the server. It always hang at some stage of the time and i use Ethereal to check the problem. The ethereal last statement was
"Who has 10.0.0.2(client address), tell it to 10.0.0.1(server)". During this process, certain amount of data will be lost. Thus my client will not have to complete set of information. So could someone please find me?
 
Old 10-03-2003, 11:41 PM   #2
jinksys
Member
 
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 419

Rep: Reputation: 35
Could you state some information for me, like are you using TCP or UDP? What platform/distro you are using? Are the server and client on the same LAN( im assuming they are since you used ethereal), etc.

Id be happy to help, i just need more details.
 
Old 10-04-2003, 12:17 AM   #3
frostmagic
LQ Newbie
 
Registered: Sep 2003
Posts: 28

Original Poster
Rep: Reputation: 15
Thanks , i using UDP . I connect 2 computer just with a cross cable. They are under the same LAN. I dont know what you mean by platform, i am a new user to Linux system so some terms i dont really know. It just 2 computer connected to each other and do sending and receiving.
 
Old 10-04-2003, 07:28 AM   #4
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
tcp will guarantee all data arrives in the correct order, with udp you have to handle the data-loss yourself
 
Old 10-04-2003, 11:13 AM   #5
frostmagic
LQ Newbie
 
Registered: Sep 2003
Posts: 28

Original Poster
Rep: Reputation: 15
hmmm , there is no other traffic in the network , why will it be lost?
 
Old 10-04-2003, 04:20 PM   #6
jinksys
Member
 
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 419

Rep: Reputation: 35
Do not use TCP for video frostmagic, you're smart with using UDP. It seems to me that if you are connected directly through
a crossover cable, it must be a bug within your software.
 
Old 10-04-2003, 04:21 PM   #7
jinksys
Member
 
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 419

Rep: Reputation: 35
If you wish, you could email me a zip file of your code and I could take a look at it.
 
Old 10-05-2003, 09:36 AM   #8
frostmagic
LQ Newbie
 
Registered: Sep 2003
Posts: 28

Original Poster
Rep: Reputation: 15
i gladly wish you could look for me, because i need to solve this bug within like 1 week. But my programming skills are very lousy, do a lot things through the long way. If you dont mind. Can i have your email address?
 
Old 10-05-2003, 01:13 PM   #9
jinksys
Member
 
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 419

Rep: Reputation: 35
jinksys444@charter.net

Just send me the code and Ill see what I can do.
 
Old 10-06-2003, 07:30 AM   #10
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
by jinksys
Do not use TCP for video frostmagic, you're smart with using UDP.

i agree, i was just saying perhaps his problem was because he didnt realise that udp packets arrive in a random order with some possibly missing and that you have to handle this yourself.
 
Old 10-06-2003, 01:37 PM   #11
jinksys
Member
 
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 419

Rep: Reputation: 35
Quote:

i agree, i was just saying perhaps his problem was because he didnt realise that udp packets arrive in a random order with some possibly missing and that you have to handle this yourself.
I figured that was what ya meant, you're really knowledgable, what kind of schooling do you have?
 
Old 10-06-2003, 01:45 PM   #12
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
by jinksys
you're really knowledgable, what kind of schooling do you have?

well thankyou but there are a lot of people here who know more than me - david_ross for example.

as far as schooling goes ive never done anything related to computers, im totally self taught. at the moment im just starting my 3rd of 4th year of my masters degree in maths at durham university, england.
 
Old 10-06-2003, 01:55 PM   #13
frostmagic
LQ Newbie
 
Registered: Sep 2003
Posts: 28

Original Poster
Rep: Reputation: 15
jinksys how was the code i send you , is there anything wrong with it?
 
Old 10-06-2003, 03:31 PM   #14
jinksys
Member
 
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 419

Rep: Reputation: 35
Honestly frosty, Ive been really busy with school so I havent been able to actually set up a network and test it. All Ive done so far is look over the code and see how its internals work. I have a question for you though, what is the other included file for? Is it the file you are streaming?

Tonight and tomarrow I am free, so i'll set up a dedicated network for it, and test it.



Last edited by jinksys; 10-06-2003 at 03:36 PM.
 
Old 10-06-2003, 10:58 PM   #15
frostmagic
LQ Newbie
 
Registered: Sep 2003
Posts: 28

Original Poster
Rep: Reputation: 15
Hmm , sorry for troubling, hmm , ya it is the streaming file. Now i am only streaming a text file. Once i find the problem in the program , i will be streaming a mpeg file.
 
  


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
Socket programming problems marri Programming 5 10-06-2005 04:11 PM
Problems with gtk programming ndha Programming 6 04-13-2005 03:29 AM
java programming problems sonar0m Linux - Software 5 12-27-2003 03:01 PM
challenging programming problems Nevion Programming 3 12-16-2003 12:59 PM
Memory problems in Xil programming slowman Programming 1 06-08-2003 12:33 PM

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

All times are GMT -5. The time now is 08:57 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