From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c8a77a7c9e53f0d9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-24 08:07:14 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!news-FFM2.ecrc.net!newsfeed1.sbs.de!news.mch.sbs.de!not-for-mail From: Bernd.Specht@gmx.com (Bernd Specht) Newsgroups: comp.lang.ada Subject: Re: Udp server instructions with adasocket? Date: Thu, 24 Oct 2002 15:07:12 +0000 (UTC) Organization: No company Message-ID: References: <4634dc62041336024b32cc77742a247e.110780@mygate.mailgate.org> NNTP-Posting-Host: 139.21.122.158 X-Trace: news.mch.sbs.de 1035472032 355 139.21.122.158 (24 Oct 2002 15:07:12 GMT) X-Complaints-To: abuse@siemens.de NNTP-Posting-Date: Thu, 24 Oct 2002 15:07:12 +0000 (UTC) User-Agent: Xnews/4.05.03 Xref: archiver1.google.com comp.lang.ada:30104 Date: 2002-10-24T15:07:12+00:00 List-Id: "Sim Con" 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).