[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: (LibAnet) How I Get the ipv6 address from a accept_connection newsocket?



Hi,

On 09/05/2017 08:26 PM, Dani wrote:
>   How I Get the ipv6 address from a accept_connection newsocket?
> 
>    example case:
> 
>    Obs:
>       show_address is just an example. What I want is what to use instead
> of this show_address. for now I do not know what to use or do.
> 
> 
>    procedure example is
>        soq         : TCPv6_Socket_Type;
>        soq_new : TCPv6_Socket_Type;
> 
>    begin
> 
>        soq.Init;
>        soq.Bind (Port => 59000 );
>        soq.Listen (Backlog => 80 );
>        soq.Accept_Connection(soq_new); --  bloq
> 
>         put_line("ipv6 Address from connecting host is " &
> show_addres(soq_new);
>     end example;

I'm afraid that this is currently not possible as we do not pass the
address information from the thin layer up to the caller. We'll look
into it.

Kind regards,
- reto


Reply to: