comp.lang.ada
 help / color / mirror / Atom feed
* socket
@ 2003-03-05 12:52 abdel
  2003-03-05 13:44 ` socket Preben Randhol
  2003-03-19 23:41 ` socket Tony Gair
  0 siblings, 2 replies; 13+ messages in thread
From: abdel @ 2003-03-05 12:52 UTC (permalink / raw)


hello
i'm new in ada & i speak a little the 'C'. I have to do something with
sockets. I have download adasocket, claw but i don't understand much how it
goes.If someone can help me I will be grateful.

sorry for my bad or poor english





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

* Re: socket
  2003-03-05 12:52 socket abdel
@ 2003-03-05 13:44 ` Preben Randhol
  2003-03-05 14:01   ` socket abdel
                     ` (3 more replies)
  2003-03-19 23:41 ` socket Tony Gair
  1 sibling, 4 replies; 13+ messages in thread
From: Preben Randhol @ 2003-03-05 13:44 UTC (permalink / raw)


abdel wrote:
> hello
> i'm new in ada & i speak a little the 'C'. I have to do something with
> sockets. I have download adasocket, claw but i don't understand much how it
> goes.If someone can help me I will be grateful.

Sorry, but what is your problem with adasocket or claw?
-- 
 ()   Join the worldwide campaign to protect fundamental human rights.
'||}
{||'                                           http://www.amnesty.org/



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

* Re: socket
  2003-03-05 13:44 ` socket Preben Randhol
@ 2003-03-05 14:01   ` abdel
  2003-03-05 14:17   ` socket abdel
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 13+ messages in thread
From: abdel @ 2003-03-05 14:01 UTC (permalink / raw)



"Preben Randhol" <randhol+news@pvv.org wrote:
> Sorry, but what is your problem with adasocket or >claw?

my problem is that i don't know how adasocket can work.
I have to create an application wich have to repatriate messages,wich are in
a message server.
In fact i have read all source of adasocket and i don't know by where i have
to start.






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

* Re: socket
  2003-03-05 13:44 ` socket Preben Randhol
  2003-03-05 14:01   ` socket abdel
@ 2003-03-05 14:17   ` abdel
  2003-03-05 14:19     ` socket Preben Randhol
  2003-03-05 14:19   ` socket abdel
  2003-03-05 15:09   ` socket abdel
  3 siblings, 1 reply; 13+ messages in thread
From: abdel @ 2003-03-05 14:17 UTC (permalink / raw)


"Preben Randhol" <randhol+news@pvv.org wrote:
> Sorry, but what is your problem with adasocket or >claw?

my problem is that i don't know how adasocket can work.
I have to create an application wich have to repatriate messages,wich are in
a message server.
In fact i have read all source of adasocket and i don't know by where i have
to start.








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

* Re: socket
  2003-03-05 13:44 ` socket Preben Randhol
  2003-03-05 14:01   ` socket abdel
  2003-03-05 14:17   ` socket abdel
@ 2003-03-05 14:19   ` abdel
  2003-03-05 15:09   ` socket abdel
  3 siblings, 0 replies; 13+ messages in thread
From: abdel @ 2003-03-05 14:19 UTC (permalink / raw)


"Preben Randhol" <randhol+news@pvv.org wrote:
> Sorry, but what is your problem with adasocket or >claw?

my problem is that i don't know how adasocket can work.
I have to create an application wich have to repatriate messages,wich are in
a message server.
In fact i have read all source of adasocket and i don't know by where i have
to start.








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

* Re: socket
  2003-03-05 14:17   ` socket abdel
@ 2003-03-05 14:19     ` Preben Randhol
  2003-03-05 15:31       ` socket abdel
  0 siblings, 1 reply; 13+ messages in thread
From: Preben Randhol @ 2003-03-05 14:19 UTC (permalink / raw)


abdel wrote:
> "Preben Randhol" <randhol+news@pvv.org wrote:
>> Sorry, but what is your problem with adasocket or >claw?
> 
> my problem is that i don't know how adasocket can work.
> I have to create an application wich have to repatriate messages,wich are in
> a message server.
> In fact i have read all source of adasocket and i don't know by where i have
> to start.

Have you tried the examples?

-- 
 ()   Join the worldwide campaign to protect fundamental human rights.
'||}
{||'                                           http://www.amnesty.org/



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

* Re: socket
  2003-03-05 13:44 ` socket Preben Randhol
                     ` (2 preceding siblings ...)
  2003-03-05 14:19   ` socket abdel
@ 2003-03-05 15:09   ` abdel
  3 siblings, 0 replies; 13+ messages in thread
From: abdel @ 2003-03-05 15:09 UTC (permalink / raw)


"Preben Randhol" <randhol+news@pvv.org wrote:
> Sorry, but what is your problem with adasocket or >claw?

my problem is that i don't know how adasocket can work.
I have to create an application wich have to repatriate messages,wich are in
a message server.
In fact i have read all source of adasocket and i don't know by where i have
to start.










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

* Re: socket
  2003-03-05 14:19     ` socket Preben Randhol
@ 2003-03-05 15:31       ` abdel
  2003-03-05 16:27         ` socket Preben Randhol
  2003-03-05 19:11         ` socket tmoran
  0 siblings, 2 replies; 13+ messages in thread
From: abdel @ 2003-03-05 15:31 UTC (permalink / raw)



"Preben Randhol" wrote:
> Have you tried the examples?

yes of course i have traid some examples but when i compile some errors will
accur and i don't see from where that could come :

./sockets-thin.o: In function `sockets__thin__c_poll':
c:/docume~1/abdel/bureau/adasoc~1/adasoc~1.5/examples/socket
s-thin.adb:157: undefined reference to `select@20'
c:/docume~1/abdel/bureau/adasoc~1/adasoc~1.5/examples/socket
s-thin.adb:170: undefined reference to `__WSAFDIsSet@8'
c:/docume~1/abdel/bureau/adasoc~1/adasoc~1.5/examples/socket
s-thin.adb:170: undefined reference to `__WSAFDIsSet@8'
...
./sockets-naming.o: In function `sockets__naming__get_peer':
c:/docume~1/abdel/bureau/adasoc~1/adasoc~1.5/examples/socket
s-naming.adb:159: undefined reference to `getpeername@12'
...
./sockets.o: In function `sockets__accept_socket':
c:/docume~1/abdel/bureau/adasoc~1/adasoc~1.5/examples/socket
s.adb:134: undefined reference to `accept@12'
..
from where that could come





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

* Re: socket
  2003-03-05 15:31       ` socket abdel
@ 2003-03-05 16:27         ` Preben Randhol
  2003-03-05 19:11         ` socket tmoran
  1 sibling, 0 replies; 13+ messages in thread
From: Preben Randhol @ 2003-03-05 16:27 UTC (permalink / raw)


abdel wrote:
> 
> "Preben Randhol" wrote:
>> Have you tried the examples?
> 
> yes of course i have traid some examples but when i compile some errors will
> accur and i don't see from where that could come :
> 
> ./sockets-thin.o: In function `sockets__thin__c_poll':
> c:/docume~1/abdel/bureau/adasoc~1/adasoc~1.5/examples/socket
> s-thin.adb:157: undefined reference to `select@20'
> c:/docume~1/abdel/bureau/adasoc~1/adasoc~1.5/examples/socket
> s-thin.adb:170: undefined reference to `__WSAFDIsSet@8'
> c:/docume~1/abdel/bureau/adasoc~1/adasoc~1.5/examples/socket
> s-thin.adb:170: undefined reference to `__WSAFDIsSet@8'
> ...
> ./sockets-naming.o: In function `sockets__naming__get_peer':
> c:/docume~1/abdel/bureau/adasoc~1/adasoc~1.5/examples/socket
> s-naming.adb:159: undefined reference to `getpeername@12'
> ...
> ./sockets.o: In function `sockets__accept_socket':
> c:/docume~1/abdel/bureau/adasoc~1/adasoc~1.5/examples/socket
> s.adb:134: undefined reference to `accept@12'
> ..
> from where that could come

Which compiler do you use? And how did you try to compile the adasockets
library. There is a mailinglist for adasockets here:

http://www.rfc1149.net/devel/adasockets

you will probably get more help there.

-- 
 ()   Join the worldwide campaign to protect fundamental human rights.
'||}
{||'                                           http://www.amnesty.org/



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

* Re: socket
  2003-03-05 15:31       ` socket abdel
  2003-03-05 16:27         ` socket Preben Randhol
@ 2003-03-05 19:11         ` tmoran
  2003-03-06  8:22           ` socket abdel
  1 sibling, 1 reply; 13+ messages in thread
From: tmoran @ 2003-03-05 19:11 UTC (permalink / raw)


> > Have you tried the examples?
> ...
> s-thin.adb:157: undefined reference to `select@20'
  That looks more like a gnatbind message.  Are your directories and
Path's set up so it can find the relevant libraries?
  If you tried Claw, did you run one of its mk*.bat files successfully?
Did you try one of the Notify or Simple Web Server or Finder examples
with success?



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

* Re: socket
  2003-03-05 19:11         ` socket tmoran
@ 2003-03-06  8:22           ` abdel
  0 siblings, 0 replies; 13+ messages in thread
From: abdel @ 2003-03-06  8:22 UTC (permalink / raw)



<tmoran@acm.org wrote:
 > If you tried Claw, did you run one of its mk*.bat files successfully?

Yes i did  run mk*.bat files but errors appear like:


C:\Documents and Settings\Abdel\Bureau\test\mes_telechar\test
smtp>gnatmake -gna
to -O2 testcc -largs -mwindows testcc.rbj
gnatbind -x testcc.ali
error: elaboration circularity detected
info:    "claw.low_dialog (spec)" must be elaborated before
"claw.low_wnd_proc (body)"
info:       reason: with clause

info:    "claw.edit.multiline (spec)" must be elaborated before
"claw.low_dialog
 (body)"
info:       reason: with clause
info:    "claw.edit.multiline (spec)" must therefore be elaborated before
"claw.low_dialog (spec)"
info:       (because "claw.low_dialog (spec)" has a pragma Elaborate_Body)

info:    "claw.low_wnd_proc (body)" must be elaborated before
"claw.edit.multiline (spec)"
info:       reason: Elaborate_All probably needed in unit
"claw.edit.multiline (spec)"
info:       recompile "claw.edit.multiline (spec)" with -gnatwl for full
details

info:          "claw.low_wnd_proc (body)"
info:             must be elaborated along with its spec:
info:          "claw.low_wnd_proc (spec)"
info:             which is withed by:
info:          "claw.edit (body)"
info:             which must be elaborated along with its spec:
info:          "claw.edit (spec)"
info:             which is withed by:
info:          "claw.edit.multiline (spec)"

gnatmake: *** bind failed.
> Did you try one of the Notify or Simple Web Server or Finder examples
> with success?


When i compile Notify the smae errors appear.






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

* Re: socket
  2003-03-05 12:52 socket abdel
  2003-03-05 13:44 ` socket Preben Randhol
@ 2003-03-19 23:41 ` Tony Gair
  2003-03-20  5:51   ` socket Pascal Obry
  1 sibling, 1 reply; 13+ messages in thread
From: Tony Gair @ 2003-03-19 23:41 UTC (permalink / raw)


There are some excellent simple examples with the adasockets package
which although appear a bit hairy at first, they do explain how
adasockets can be used.

If you want some more complicated examples using tasking and protected
objects to store messages coming in, and sending them out, then email
me, but first I would recommend getting to grips with the examples
first.

I would also take a look at the distributed annex Gnat-Glade as this
is quite useful too.



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

* Re: socket
  2003-03-19 23:41 ` socket Tony Gair
@ 2003-03-20  5:51   ` Pascal Obry
  0 siblings, 0 replies; 13+ messages in thread
From: Pascal Obry @ 2003-03-20  5:51 UTC (permalink / raw)



tony_gair@yahoo.co.uk (Tony Gair) writes:

> If you want some more complicated examples using tasking and protected
> objects to store messages coming in, and sending them out, then email
> me, but first I would recommend getting to grips with the examples
> first.

AWS is a good candidate here too. It uses tasking, protected objects, buffered
sockets IO...

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|         http://perso.wanadoo.fr/pascal.obry
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595



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

end of thread, other threads:[~2003-03-20  5:51 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-05 12:52 socket abdel
2003-03-05 13:44 ` socket Preben Randhol
2003-03-05 14:01   ` socket abdel
2003-03-05 14:17   ` socket abdel
2003-03-05 14:19     ` socket Preben Randhol
2003-03-05 15:31       ` socket abdel
2003-03-05 16:27         ` socket Preben Randhol
2003-03-05 19:11         ` socket tmoran
2003-03-06  8:22           ` socket abdel
2003-03-05 14:19   ` socket abdel
2003-03-05 15:09   ` socket abdel
2003-03-19 23:41 ` socket Tony Gair
2003-03-20  5:51   ` socket Pascal Obry

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