- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- recvfrom not returning the source address
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-18-2005 11:46 AM
тАО04-18-2005 11:46 AM
recvfrom not returning the source address
The 32-bit version of this same program works.
It there something I need to set up to make the 64-bit version work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2005 04:33 AM
тАО04-20-2005 04:33 AM
Re: recvfrom not returning the source address
Also, make sure there were no warnings during compilation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2005 05:02 AM
тАО04-20-2005 05:02 AM
Re: recvfrom not returning the source address
Tried this same code compiled in 32-bit and ran in the debugger. The recvfrom worked as expected returning the message together with the address where it came from.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2005 05:19 AM
тАО04-20-2005 05:19 AM
Re: recvfrom not returning the source address
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-08-2018 02:00 AM
тАО04-08-2018 02:00 AM
Re: recvfrom not returning the source address
Sure, 13 years passed, but this is still int the top results from Google.
Today, the same problem comes to me, the same code, but recvfrom api works fine with 32 bit but not returns the source address with 64 bit.
After some search, I found the solution: My Compiling shell includes -D_XOPEN_SOURCE_EXTENDED, this leads program using xopen apis but this api looks like has some bugs in 64 bit mode.
I removed -D_XOPEN_SOURCE_EXTENDED and changed my code to use the default api based recvfrom's man page (the main modify is changeing the last parameter from socklen_t to int). Now it works fine.