Created
July 29, 2011 07:14
-
-
Save evanlong/1113361 to your computer and use it in GitHub Desktop.
Tyler DB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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