comp.lang.ada
 help / color / mirror / Atom feed
* GNAT.SOCKETS.SOCKET_ERROR: [0] Error
@ 2002-10-26  7:17 ulysses
  2002-10-26 10:51 ` David C. Hoos, Sr.
  2002-10-26 12:37 ` Simon Wright
  0 siblings, 2 replies; 4+ messages in thread
From: ulysses @ 2002-10-26  7:17 UTC (permalink / raw)


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....





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-11-03  7:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-26  7:17 GNAT.SOCKETS.SOCKET_ERROR: [0] Error ulysses
2002-10-26 10:51 ` David C. Hoos, Sr.
2002-10-26 12:37 ` Simon Wright
2002-11-03  7:13   ` ulysses

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