Menu

#2 Problem with IPM under windows

open
nobody
None
5
2002-06-05
2002-06-05
No

Hi,

First I hope this group is well alive...
I noticed two problems with the IPM extension of tcl-dp
under windows (I recompiled tcl-dp4.0b2 for tcl8.3):

1 - When connecting ipm:
dp_connect ipm -group 225.23.123.112 -myport 8956 -ttl
1
Tcl-dp reports an error: "Error creating IPM socket:
invalid argument"
but if I use a socket command before this call, e.g.
socket -server dummy 12345
it works well (initialization problem with winsock ?)

2- I did not find any solution to the next problem:
console show
package require dp
set PORT 8956
set PORT2 8957
set HOST 127.0.0.1
set GROUP 225.23.123.112
wm protocol . WM_DELETE_WINDOW exit
socket -server "Puts" 12345
set IPM [dp_connect ipm -group $GROUP -myport
$PORT -ttl 1]
fconfigure $IPM -blocking 0 -translation binary
puts -nonewline $IPM toto

after the last command, the tcl interpreter does not
respond, and 100% of CPU is used... I read carrefully
the code of UdpIpmOutput in win/dpSock.c, and it
appears that it is the command sendto which hangs the
interpreter (but the window manager works well !!!). I
compared the code of win/dpSock.c and
win/dpWinIPM.c with several tutorials on the net and it
looks well... I did not find anything wrong with the code...

Please send me some help to grolleau@ensma.fr

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.