Skip to content

Instantly share code, notes, and snippets.

@evanlong
Created July 29, 2011 07:14
Show Gist options
  • Save evanlong/1113361 to your computer and use it in GitHub Desktop.
Save evanlong/1113361 to your computer and use it in GitHub Desktop.
Tyler DB
#include <stdio.h>
#include <socketshit.h>
int main(int argc, char** argv)
{
while(true) {
int fd = listen(internet);
superbuffer_t buff = read(fd);
write(dbfile, buff);
//fsync(dbfile); //took this out. was slowing me down
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment