When opening two udp sockets in the same scope, mirc select the same local port if we don't use one :
Code:
on *:udpread:test:{
  sockread -fn 4096 &a
  tokenize 32 $bvar(&a,1,4096).text 
  var -s %ip $sock(test).saddr ,%port $sock(test).sport ,%d $1-
}
Type
Code:
/sockudp -kn test 8001 127.0.0.1 8001
then
Code:
//sockudp -kn test1 127.0.0.1 8001 lol | sockudp -kn test2 127.0.0.1 8001 lol


can't reproduce the behavior with :
Code:
//sockudp -kn test1 127.0.0.1 8001 lol | .timer -m 1 500 sockudp -kn test2 127.0.0.1 8001 lol


tested on mIRC 7.16

Last edited by Wims; 11/12/10 06:24 AM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel