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.=20
--
To unsubscribe from the list, just send an email to
lists at rebol.com with unsubscribe as the subject.