Commit d2b40c09 by Laurent GUERBY Committed by Laurent Guerby

re PR ada/28716 (Ada: Bind_Socket doesn't bind to specified address)

2006-08-20  Laurent GUERBY  <laurent@guerby.net>

        PR ada/28716
        g-socket.adb (Bind_Socket): Call Set_Address.

From-SVN: r117092
parent 1186ec8c
2006-08-20 Laurent GUERBY <laurent@guerby.net>
PR ada/28716
g-socket.adb (Bind_Socket): Call Set_Address.
2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
PR ada/15802
......
......@@ -357,6 +357,7 @@ package body GNAT.Sockets is
Set_Length (Sin'Unchecked_Access, Len);
Set_Family (Sin'Unchecked_Access, Families (Address.Family));
Set_Address (Sin'Unchecked_Access, To_In_Addr (Address.Addr));
Set_Port
(Sin'Unchecked_Access,
Short_To_Network (C.unsigned_short (Address.Port)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment