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,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2f692b4c25ee9d1c,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-26 00:17:06 PST From: "ulysses" Newsgroups: comp.lang.ada Subject: GNAT.SOCKETS.SOCKET_ERROR: [0] Error Date: Sat, 26 Oct 2002 15:17:09 +0800 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 202.156.183.214 Message-ID: <3dba4175$1@news.starhub.net.sg> X-Trace: 26 Oct 2002 15:17:09 +0800, 202.156.183.214 Organization: StarHub Internet Pte Ltd Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newspeer1.nac.net!news.stealth.net!news.stealth.net!newsvr.starhub.net.sg!news.starhub.net.sg!202.156.183.214 Xref: archiver1.google.com comp.lang.ada:30148 Date: 2002-10-26T15:17:09+08:00 List-Id: Hi , Can anyone help me with this problem. Ok here's mine code snippet: Create_Socket (Socket, Family_Inet, -- OK Remote_Addr.Addr := Get_Host_By_Name("localhost")); -- OK Remote_Addr.Port := -- OK Ada.Text_IO.Put_line("Remote Addr:" & Image(Remote_Addr)); Channel := Stream(Socket, -- NOT OK, give GNAT.SOCKET_ERROR:[0] Error Ada.Text_IO.Put_line("222"); String'Output(Channel, "Hello World"); I had done a lot of findings and even dig into g-sockets.ads & .adb, but I just couldn't FIGURE out what's the problem ... :_(. Izzit my Address got problem, that cause Stream() function not able to return me a Stream_Access type ? Thanks for any advice....