Skip to content

gwicke/socketmachine.c

Repository files navigation

socketmachine.c

Old (~2007) fun project implementing sync-looking libev async code using continuation passing. The implementation (ab)uses (GC)C macros and computed gotos, in the spirit of Duff's device.

See the SM_CALL implementation and how it is used:

if(SM_CALL(evaio_recv_peek, fd, s->buf+100, 1000-103, childco) < 0) {
  ...
}

About

Old fun project trying to implement sync-looking async code using continuation passing implemented in C macros and computed gotos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published