Re: Tcl script fails on some platforms



At Tue, 31 Jul 2007 10:19:06 -0700 hrp1000@xxxxxxxxx wrote:


Okay, I think I've got at least a partial answer to this problem.

The interface between my Tcl script and the Fortran/C program is via
TCP/IP sockets. If I force the IP address of the server side (in Tcl)
to be localhost or 127.0.0.1, I get this error and can see that
$::session has not been set (or is set to somethiing that doesn't
print on the screen).

If I just let the Tcl socket stuff use the real IP address of the
machine, I don't get the problem.

Now I have to see if my user (in a different time zone) can tell me
more about his machine...

Sounds like it is machine that lacks an EtherNet connection...

If the Fortran/C program is in fact running on the local machine, then
the interface code needs to be able to work over the loopback device
(localhost or 127.0.0.1) -- in fact it should prefer to use the
loopback, since that is more secure -- it avoids running a 'public'
service that could be hacked into.

You might want to have a really close look at the code where the sockets
are set up and see why using the loopback device causes problems.




--
Robert Heller -- Get the Deepwoods Software FireFox Toolbar!
Deepwoods Software -- Linux Installation and Administration
http://www.deepsoft.com/ -- Web Hosting, with CGI and Database
heller@xxxxxxxxxxxx -- Contract Programming: C/C++, Tcl/Tk

.



Relevant Pages

  • Re: TDBC documentation, examples, syntax?
    ... interface usually provides enhanced features). ... The goal of TDBC is to define the Tcl parts of the interface and get ... useful than nested transactions: transaction boundaries. ... push this problem onto the "driver programmer". ...
    (comp.lang.tcl)
  • Re: threaded tcl crash
    ... >application that recieves request via sockets and post them to working ... it works fine but when I make load tests the threaded tcl ... >is it tcl problem or operation system problem? ... hood using winsock's WSAAsyncSelect. ...
    (comp.lang.tcl)
  • Re: Help! mem leak in c extension.
    ... started with a standalone c prog invoked as you suggested. ... coupling it more tightly with a Tcl interpreter will never improve its ... I guess I was not very clear about the fact that the standalone prog ... So I normally create a Tcl interface (usually ...
    (comp.lang.tcl)
  • Re: Sport and the future
    ... I also join Bruce to first define an API for sockets (and ... Presto, we have an instance interface, and as ... libraries than the implementation of them, but I do think the FFI ... As a user of this pearl (or string of pearls ...
    (comp.lang.smalltalk)
  • Re: socket limitations question
    ... a tcl one, but does anybody know the how ... many sockets one application can listen ... with at least one connection from a monitoring process to ... I got it going in the end by using a 2 tier system, where a master ...
    (comp.lang.tcl)