Skip to content

Instantly share code, notes, and snippets.

View stephank's full-sized avatar

Stéphan Kochen stephank

View GitHub Profile
@stephank
stephank / gist:3193920
Created July 28, 2012 16:30
server-time client capability specification

server-time client capability specification

Clients indicate support for the extension by requesting a capability server-time as per the [IRC Client Capabilities Extension][caps].

CAP REQ :server-time

After requesting the capability, clients MUST be able to parse an optional timestamp at the start of each message. The message pseudo-BNF, as defined in [RFC 1459, section 2.3.1][rfc1459] is extended to look as follows:

::= ['@' ] [':' ]

static int EIO_AfterDrawMap(eio_req *req) {
HandleScope scope;
drawmap_request *drawmap_req =(drawmap_request *)req->data;
ev_unref(EV_DEFAULT_UC);
drawmap_req->map->Unref();
Local<Value> argv[2];
if (drawmap_req->data != NULL) {
Buffer * buffer = Buffer::New(drawmap_req->data, drawmap_req->size, FreeImageBuffer, NULL);
(function () {
var myModule = {
"prop1" : "some value",
"prop2" : "some other value"
};
myModule.someMethod = function () {
// Do stuff with props.
};