Research on the Development of WebSocket Server

Article Preview

Abstract:

The WebSocket makes the web application to deal with the web data directly in the HTML5 and it provides full-duplex communications channels using TCP connection. Some traditional web communication technologies and their shortcomings are introduced such as polling, long polling, stream and flash xml socket in this paper. The principle of the web socket is introduced and a WebSocket server is developed which can be used in the real time web environment. The server includes two modules which include the socket listener and the communication socket. The server implements the WebSocket handshake protocol and the data transfer protocol. The server is developed by C++ language which can provide high efficiency data operation and network transportation. The program is more scalability and flexibility and it uses the universal interface to implement the core functions of web socket with the CAsyncSocket.

You might also be interested in these eBooks

Info:

Periodical:

Pages:

694-697

Citation:

Online since:

January 2014

Authors:

Export:

Price:

Permissions CCC:

Permissions PLS:

Сopyright:

© 2014 Trans Tech Publications Ltd. All Rights Reserved

Share:

Citation:

* - Corresponding Author

[1] XMLSocket, http: /help. adobe. com/en_US/FlashPlatform/reference/actionscript/3/flash/net/XMLSocket. html.

Google Scholar

[2] HTML 5. 1, a vocabulary and associated APIs for HTML and XHTML, http: /www. w3. org/TR/html51.

Google Scholar

[3] Peter Lubbers, Frank Greco, HTML5 Web Sockets: A Quantum Leap in Scalability for the Web, http: /www. websocket. org/quantum. html.

Google Scholar

[4] The WebSocket API, http: /dev. w3. org/html5/websockets/, Ian HicksonIan, Inc. (2013).

Google Scholar

[5] CAsyncSocket. http: /msdn. microsoft. com/en-us/library/aa268620(v=vs. 60). aspx.

Google Scholar

[6] Windows Sockets: Using Class CAsyncSocket, http: /msdn. microsoft. com/en-us/library/t7a47kk4. aspx.

Google Scholar

[7] The Base16, Base32, and Base64 Data Encodings, http: /tools. ietf. org/html/rfc4648, (2006).

DOI: 10.17487/rfc4648

Google Scholar

[8] The WebSocket Protocol, http: /tools. ietf. org/html/rfc6455, (2011).

Google Scholar

[9] UTF-8, a transformation format of ISO 10646, http: /www. ietf. org/rfc/rfc3629. txt, November (2003).

Google Scholar