From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
Subject: Re: GNAT.SOCKETS.SOCKET_ERROR: [0] Error
Date: Sat, 26 Oct 2002 05:51:46 -0500
Date: 2002-10-26T05:51:46-05:00 [thread overview]
Message-ID: <mailman.1035629582.14553.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: 3dba4175$1@news.starhub.net.sg
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" <ulysses_w@hotmail.com>
Newsgroups: comp.lang.ada
To: <comp.lang.ada@ada.eu.org>
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
>
>
next prev parent reply other threads:[~2002-10-26 10:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-26 7:17 GNAT.SOCKETS.SOCKET_ERROR: [0] Error ulysses
2002-10-26 10:51 ` David C. Hoos, Sr. [this message]
2002-10-26 12:37 ` Simon Wright
2002-11-03 7:13 ` ulysses
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox