[comp.lang.eiffel] newtworking in Eiffel

breissinger-marc@CS.Yale.EDU (Marc Breissinger) (04/16/89)

Has anyone out there ever used Eiffel for networking?

I am currently working on a multi-player adventure game in eiffel.  I have
the client and server code written in C and I need to wrap eiffel classes
around it somehow.  The problem I am running into is that the Unix network
system calls have params that are pointers to structures (in particular,
hostent, servent, sockaddr, fd_set).

I thought I might be able to write C routines which accept the individual
pieces of data in the structure and then call the appropriate
routines.  I could then wrap an eiffel feature around these routines.
The problem, however, is that some of the system calls return pointers
to these structures.  How do I get this data back into Eiffel?

Any ideas or examples would be greatly appreciated.

Thanks in advance,
--Marc

bdc@tigger.planet.bt.co.uk (Brian Cantwell) (04/25/89)

From article <57210@yale-celray.yale.UUCP>, by breissinger-marc@CS.Yale.EDU (Marc Breissinger):
> Has anyone out there ever used Eiffel for networking?
> 
> < paragraph deleted > 
> I thought I might be able to write C routines which accept the individual
> pieces of data in the structure and then call the appropriate
> routines.  I could then wrap an eiffel feature around these routines.
> The problem, however, is that some of the system calls return pointers
> to these structures.  How do I get this data back into Eiffel?
> 
> Any ideas or examples would be greatly appreciated.
> 
> Thanks in advance,
> --Marc

I am also interested in solutions to this problem.
Anyone using Eiffel in UK who has a workable solution to linking
multiple Eiffel processes over the network, either via RPC or other
mechanism, please contact me. Also if you have useful class libraries
in Eiffel, for sale or development.
Thanks

______________________________________________________________________
B Cantwell-Wright Dept., RT5111,      |   Phone Ipswich (0473) 646774
British Telecom Research Labs,        | International + 44 473 646774
Martlesham Heath,                     | email bdc@planet.bt.co.uk
Ipswich, Suffolk, England, IP5 7RE    |
______________________________________________________________________