Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] How to change local-port?

From: semseddinm::bircom::com at: 13-Jan-2009 11:31

Hi, I'm trying to open a UDP port with a specified local-port, but local-port is changed when I send something. Here is what I done (in console) p: open [ scheme: 'udp host: 127.0.0.1 port-id: 9000 local-port: 9090 ] ? p P is a port of value: make port! [ scheme: 'udp host: 127.0.0.1 port-id: 9000 local-ip: 156.135.68.0 remote-ip: 127.0.0.1 local-port: 5377 ;<--- it takes this automatically remote-port: 9000 ... ] Then I change it again: p/local-port: 9090 ? p P is a port of value: make port! [ scheme: 'udp host: 127.0.0.1 port-id: 9000 local-ip: 156.135.68.0 remote-ip: 127.0.0.1 local-port: 9090 ;<--- it looks ok remote-port: 9000 ... ] Then send something.. insert p "testing" then it takes another local-port automatically.. ? p P is a port of value: make port! [ scheme: 'udp host: 127.0.0.1 port-id: 9000 local-ip: 156.135.68.0 remote-ip: 127.0.0.1 local-port: 2282 ;<--- it changed again? remote-port: 9000 ... ] Is it not possible to change local-port? Or prevent to change it automatically. I think it should be. Sorry for the long email.