[sysapps/raw socket api]: New version based on Madrid meeting comments and comments from Ke-Fong Lin

See http://raw-sockets.sysapps.org/

Is this version now ready for a CFC for FPWD?

Updates according to SysApps Madrid meeting 2013-04-09 and comments by Ke-Fong Lin (thanks a lot!):

* For reading simplicity the API is restructured so that there are three main interfaces according to below:
- interface UDPSocket : EventTarget
- interface TCPSocket : EventTarget
- interface TCPServerSocket : EventTarget
* Syntax and semantics as much as possible aligned with W3C Web Sockets.
* UDPSocket: Updated constructor to optionally use UDPOptions dictionary and extended the dictionary with fields for default remote address and port.
* UDPSocket: Added joinMulticastGroup() and leaveMulticastGroup() methods
* UDPSocket: Added an explicit method for closing a UDP socket
* TCPSocket: Added method halfClose() and event for when peer has done hlf close.
* UDP and TCPSockets: Aligned sending data with Web Sockets using 4 overloading methods for different data types of outgoing data.
* UDP and TCPSockets: Implementation dependent limit for when send() returns false indicating that send buffer is near getting full. If buffer full an error event is issued consistent with Web Sockets.
* UDP and TCPSockets: Data type for received data is always ArrayBuffer. Atribute binaryType removed.
* TCPServerSocket: Added methods suspend() and resume().

Still to be done:

* More work needed on support for secure sockets.
* More UDP examples and potentially remove SSDP examples.


Claes Nilsson M.Sc.E.E
Master Engineer - Web Research
Advanced Application Labs

Sony Mobile Communications
Tel: +46 705 56 68 78
sonymobile.com<http://sonymobile.com/>

[cid:image001.jpg@01CE4038.2BBA29D0]

Received on Tuesday, 23 April 2013 13:35:55 UTC