sysapps / tcp-udp-sockets

Raw sockets API
85 stars 25 forks source link

The initial value of localPort and localAddress before UDPSocket.opened is resolved #70

Closed schien closed 10 years ago

schien commented 10 years ago

In the latest draft, UDPSocket is opened asynchronously but the localPort and localAddress is only realized after determine by platform if no initial value in constructor. I would suggest that these two attributes can be null before opened. This can be done by making localAddress and localPort nullable.

readonly    attribute DOMString?       localAddress;
readonly    attribute unsigned short?  localPort;
ClaesNilsson commented 10 years ago

Thanks for spotting this schien!