UDP server with AdaSockets

Gerhard Dieringer <[email protected]> 07 Apr 2004 15:55:48 +0200
Newsgroups gmane.comp.lang.ada.sockets
Message-ID <1081346149.1361.0.camel@lise>
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


_______________________________________________
AdaSockets mailing list
[email protected]
http://lists.rfc1149.net/mailman/listinfo/adasockets