Tag Archives: sockets

Javascript-Flash socket bridge with haxe

There are a bunch of solutions for making a bridge to use the flash sockets (flash.net.Socket) in javascript, notably socketBridge and jssockets. But I didn’t like the way they made you write your client code: because you can’t pass javascript function references through the ExternalInterface you usually pass your callbacks as strings representing the name [...]

cogen and pylons can play !

Just so you know, cogen is a coroutine framework (based on the bidirectional generators from python 2.5) that has a wsgi server with some async extensions.
Straight to the point, i’m going to show the basics by building the backend of a web based (with comet-style ajax) irc client. This is a proof of concept and [...]

Curious difference between epoll, poll, kqueue and select

Suppose you have a brand new nonblocking socket and you want to do something with it (i have a connect in mind – but it’s irrelevant anyway). So what is your obvious choice for that since the socket is non-blocking ? Use select or poll or whatever ofcourse. Right? NO.
Sadly they don’t work the same [...]