comp.lang.ada
 help / color / mirror / Atom feed
From: Bernd.Specht@gmx.com (Bernd Specht)
Subject: Re: Udp server instructions with adasocket?
Date: Thu, 24 Oct 2002 15:07:12 +0000 (UTC)
Date: 2002-10-24T15:07:12+00:00	[thread overview]
Message-ID: <Xns92B1AE286619DBerndSpechtgmxcom@139.25.208.17> (raw)
In-Reply-To: 4634dc62041336024b32cc77742a247e.110780@mygate.mailgate.org

"Sim Con" <sicon@hotmail.com> wrote in 
news:4634dc62041336024b32cc77742a247e.110780@mygate.mailgate.org:

> Hello! I am using adasocket package for my socket application, but i
> have a problem. I can establish a connection with another computer on
> the net, but i can't receive the answers from this one, the code i use
> for the server mode is:
> 
>    Socket(Socketreceive,Af_Inet,Sock_dgram);
>    Bind(Socketreceive,Portserver);
> 
> and for reading
> 
> Get(Socketreceive)
> 
> but nothing happens (i don't receive anything). Ayn help? tahnx in
> advance;)
> 
> 

Hi,

first - for UDP you have not to establish a connection ("connect
(xxx.yyy.zzz.aaa")"), this is only neccessary for TCP.

Second, does the other computer sen to the correct port? If you bind e.g. to 
port 99 then the send must address port 99 on the target computer.

If the above does not help you, maybe you can find something helpful in some 
other  socket-packages (I personally use (windows only):
 http://alfred.hilscher.bei.t-online.de/sophi.zip).




      parent reply	other threads:[~2002-10-24 15:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-23 10:56 Udp server instructions with adasocket? Sim Con
2002-10-23 12:30 ` Samuel Tardieu
2002-10-24 15:07 ` Bernd Specht [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox