RE: [sysapps/raw socket api]: Status on outstanding issues and proposal to close a number of issues.

Thanks again Jonas,

Ok, so this means that the socket constructor sets the TCPSocket.localAddress and TCPSocket.localPort attributes to null if no explicit values were set with the options argument's localAddress and localPort members. Otherwise these attributes are set to the values given by these members.

Ok?

BR

From: Jonas Sicking [mailto:jonas@sicking.cc]
Sent: den 2 juli 2013 22:54
To: Nilsson, Claes1
Cc: public-sysapps@w3.org
Subject: Re: [sysapps/raw socket api]: Status on outstanding issues and proposal to close a number of issues.

On Thu, Jun 27, 2013 at 8:47 AM, Nilsson, Claes1 <Claes1.Nilsson@sonymobile.com<mailto:Claes1.Nilsson@sonymobile.com>> wrote:
Expensive to synchronously set TCPSocket.localAddress when using default local address, https://github.com/sysapps/raw-sockets/issues/24:
Any feedback on the two options I propose to address Jonas issue?

I don't think that a TCPSocket API should be the way you get the local address. Opening a socket seems like a very unintuitive and expensive way to get the local address. So if there are use cases for that (which there likely are), I think a separate API is the way to go.
/ Jonas

Received on Wednesday, 3 July 2013 08:48:15 UTC