Re: [W3C Sys Apps]: New version of Raw Socket API proposal

Hi,

Several comments below:

* on- style event handlers such as onconnect(), onrecvfrom(), etc. would be easier to understand and use for many web developers. Corresponding event definitions, which can be used in addEventListener() etc., would be useful, too.
* I think it is useful that addresses and port numbers of source and destination would be attributes of RawSocket. Such a RawSocket could make parameter definitions of callback functions simpler.

Best regards,
Tomoyuki, KDDI, Japan


(2013/01/28 17:22), Nilsson, Claes1 wrote:
> Hi,
>
> I have uploaded a new version of the Raw Socket API proposal: http://sysapps.github.com/sysapps/proposals/raw-socket/Socket.HTML
>
> The major changes are:
>
> * Removed  create() and instead defined a constructor for the RawSocket-object.
> * Removed  disconnect() and destroy() and defined a method close().
> * Added support for server with Listen() och Accept().
> * In "Dictionary CreateOptions" added an attribute "useSecureTransport" for ssl/tls and changed " addressReuse" to default False.
> * Definied error handling with DOMError. Callback-functions has a nullable attribut "error" of type DOMError. If success then error === null else if error a DOMError-sträng. Error codes still need to be defined.
>
> Comments are welcome.
>
> Best regards
>    Claes
>
>
>
> [cid:image001.gif@01CDFD37.9365BFC0]
>
> Claes Nilsson M.Sc.E.E
> Master Engineer, Research
> Technology Research - Advanced Application Lab
>
> Sony Mobile Communications
>   Phone:  +46 10 80 15178
> Mobile: +46 705 56 68 78
> Switchboard: +46 10 80 00000
> E-Mail: mailto:claes1.nilsson@sonymobile.com<mailto:claes1.nilsson@sonyericsson.com>
> Visiting Address; Nya Vattentornet
> SE-221 88 LUND,
> Sweden
> Disclaimer:
> The information in this e-mail is confidential and may be legally privileged. It is intended solely for the named recipient(s) and access to this e-mail by anyone else is unauthorized. The views are those of the sender and not necessarily the views of Sony Ericsson and Sony Ericsson accepts no responsibility or liability whatsoever or howsoever arising in connection with this e-mail.Any attachment(s) to this message has been checked for viruses, but please rely on your own virus checker and procedures. If you contact us by e-mail, we will store your name and address to facilitate communications. If you are not the intended recipient, please inform the sender by replying this transmission and delete the e-mail and any copies of it without disclosing it.
>
>

Received on Wednesday, 30 January 2013 03:16:12 UTC