开发者

Html5 Websockets - What should I know about sockets before using websockets

开发者 https://www.devze.com 2023-01-09 02:47 出处:网络
I\'m 开发者_如何学Pythoncurrently experimenting with html5 and websockets. I know next to nothing about \"ordinary\" sockets. Before messing about with websockets I think it might be wise to learn abo

I'm 开发者_如何学Pythoncurrently experimenting with html5 and websockets. I know next to nothing about "ordinary" sockets. Before messing about with websockets I think it might be wise to learn about sockets. Is there any online material that I should read or excersizes that I should go through to get myself up to speed? It might be worth pointing out that I'm a c# programmer mainly.

Thanks in advance!


The short answer: nothing. The WebSocket protocol is a high-level (layer-7) protocol; the normal "sockets" that I think you're referring to are TCP sockets, which are much more low-level, and are programmed using the Berkeley sockets API. If you just want to use the WebSocket protocol on a pragmatic level, all you need to learn is the simple Javascript API for dealing with the same.


Well, surely you must read this at first. Browsers that support web-socket

0

精彩评论

暂无评论...
验证码 换一张
取 消