LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 03-13-2010, 01:36 AM   #1
supreed
LQ Newbie
 
Registered: Oct 2006
Posts: 10

Rep: Reputation: 0
recv function not working with Fedora 12 while working fine with Fedora core 2


Hi,

I wrote a program which send a udp broadcast packet from one computer. I am using recv(..) function in a receive program running on another computer. This programs works fine with fedora core 2 while the same program dosent work with fedora 12. Please help.

regards
Supreed
 
Old 03-13-2010, 01:58 PM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 13,452

Rep: Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799
there have been so many changes to fedora in the last 10 releases that i would NOT expect something built in fedora 2 to work on fedora 12

rewrite the software to comply with gcc 4.4
http://gcc.gnu.org/gcc-4.3/porting_to.html
http://gcc.gnu.org/gcc-4.4/porting_to.html
and rebuild in on fedora 12
 
Old 03-14-2010, 01:40 AM   #3
supreed
LQ Newbie
 
Registered: Oct 2006
Posts: 10

Original Poster
Rep: Reputation: 0
recv(..) returns -1

Dear Mr John,

Thanks for your reply. As u suggested I recompiled the program with Fedora 12. The program got compiled without any errors. But still the recv(..) returns -1. I tried to capture the packets using wireshark and the packets are available. I dont know why its not avaiable on the socket which i am listening to.

Again i got my firewall disabled thinking Firewall may stop my application from receiving the packets. But this also didnt work.

regards
Supreed
 
Old 03-14-2010, 01:52 AM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 13,452

Rep: Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799
can you post the full error from bash ?
 
Old 03-16-2010, 03:03 AM   #5
supreed
LQ Newbie
 
Registered: Oct 2006
Posts: 10

Original Poster
Rep: Reputation: 0
I tried to print the error using perror and the error string is "Resource temporarily available" ..i doubt whether the DVD which i used for installation is having some problem becoz certain programs which i wrote in Qt is giving a core dump while executing in this machine, but the same program is running fine in another machine with Fedora 12. Awaiting ur comments.
regards
Supreed
 
Old 03-21-2010, 04:11 AM   #6
supreed
LQ Newbie
 
Registered: Oct 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Select returns 0

Hi,

I tried to rewrite the receive program using "select". But Select returns 0. Anyway i could see the packets using Wireshark. So the packets are arriving but its not avaiable in the socket i am polling.

Please help.

Regards
Supreed
 
  


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
recv function dosent work fine with Fedora 12 while the same program works with Fedor supreed Fedora 2 03-12-2010 05:37 AM
recv Function returning not working with Fedora 12 while it works fine with fedora co supreed Linux - Networking 0 03-11-2010 10:52 AM
read / recv function in TCP server program (C Lang.) is not working. chakka.lokesh Linux - Networking 2 10-25-2009 10:43 PM
Fedora 3. Working fine until.... Dobly Fedora 2 03-03-2005 02:08 PM


All times are GMT -5. The time now is 09:49 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration