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.3 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2f692b4c25ee9d1c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-26 03:53:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed1.bredband.com!bredband!news.tele.dk!news.tele.dk!small.news.tele.dk!fr.usenet-edu.net!usenet-edu.net!enst.fr!not-for-mail From: "David C. Hoos, Sr." Newsgroups: comp.lang.ada Subject: Re: GNAT.SOCKETS.SOCKET_ERROR: [0] Error Date: Sat, 26 Oct 2002 05:51:46 -0500 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <3dba4175$1@news.starhub.net.sg> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1035629582 27356 137.194.161.2 (26 Oct 2002 10:53:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Sat, 26 Oct 2002 10:53:02 +0000 (UTC) Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.13 Precedence: bulk List-Unsubscribe: , List-Id: comp.lang.ada mail<->news gateway List-Post: List-Help: List-Subscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Original-Cc: ulysses_w@hotmail.com Xref: archiver1.google.com comp.lang.ada:30152 Date: 2002-10-26T05:51:46-05:00 You need to do these things to get help, viz.: 1. State which platform and version you're using -- e.g., RedHat Linux 7.2, Windows XP Professional, etc. 2. State the version of GNAT you're using, and from whence it came -- e.g., ftp.cs.nyu.edu/pub/gnat/3.14p, version that came with Linux distribution, etc. 3. Provide the complete sequence of code that produces the problem. 4. State what you're trying to do -- e.g., create a TCP server, connect as a client to a TCP server, etc. You didn't show any Bind, Connect, or Accept calls in your code "snippet," nor did you tell us what you're trying to do, so there's insufficient information for anyone to give you an answer. ----- Original Message ----- From: "ulysses" Newsgroups: comp.lang.ada To: Sent: October 26, 2002 2:17 AM Subject: GNAT.SOCKETS.SOCKET_ERROR: [0] Error > 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.... > > > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada.eu.org > http://ada.eu.org/mailman/listinfo/comp.lang.ada > >