[adasockets] UDP server with AdaSockets

Gerhard Dieringer Gerhard.Dieringer at arcor.de
Wed Apr 7 15:55:48 CEST 2004


Hi,

I started using AdaSockets (version 1.8.4.3) and encountered the
following problem:

I want to build a server using UDP. AFAIK the address of the client is
delivered in the parameter From of

   function C_Recvfrom
     (S       : C.int;
      Buf     : System.Address;
      Len     : C.int;
      Flags   : C.int;
      From    : System.Address;
      Fromlen : access C.int)
     return C.int;

But this parameter is not used in 
function Receive (Socket : Socket_FD; Max : Stream_Element_Count)


So how can a UDP server know the address of the client? 
To which address can it send its answer?

-----------------
Gerhard Dieringer




More information about the AdaSockets mailing list