For Programmers: Free Programming Magazines  


Home > Archive > Prolog > February 2005 > Multiple network iterfaces









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Multiple network iterfaces
Aperion

2005-02-02, 9:00 pm

I am using SWI prolog for this program. How can I tell prolog to send
out a message from a certain network interface. In truth I have only
one interface with multiple ip aliases. The goal behind this is to
tricking other programs on the network to thinking entities in our
programs are actual boxes on the network. How can this be done.

Thanks

Jan Wielemaker

2005-02-03, 8:57 am

On 2005-02-02, Aperion <rethnor@gmail.com> wrote:
> I am using SWI prolog for this program. How can I tell prolog to send
> out a message from a certain network interface. In truth I have only
> one interface with multiple ip aliases. The goal behind this is to
> tricking other programs on the network to thinking entities in our
> programs are actual boxes on the network. How can this be done.


I guess you've got to extend the socket interface. Goto packages/clib
of the sources and add what you need to socket.c and socket.pl. When
done properly, send the patches to me :-)

Cheers --- Jan
Aperion

2005-02-04, 3:58 pm

I noticed there is a tcp_bind in the clib, isn't that what I am looking
for to bind a socket to a certain IP address instead on IPADDR_ANY?

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com