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