Operating System - HP-UX
1833958 Members
2247 Online
110063 Solutions
New Discussion

Address In use Error (errno 48)

 
Don Burt_2
Occasional Contributor

Address In use Error (errno 48)

I have an application on Tru64 (5.1B, rev 2650) that opens a datagram socket. The user can optionally specify an interface. If so, get_interface_addr() is called to resolve the name to an address, which is supplied to the socket open. Otherwise it is opened with the wildcard address. In both cases a fixed port is applied

When an interface is supplied, the socket open fails with "Address is already in use", errno 48. When no interface is supplied it opens successfully. It certainly appears that the get_interface_addr() is causing the "in use" condition. Can that be true?, and if so, what can I do about it?