Added client registry, added GUACIO transfer operation

This commit is contained in:
Michael Jumper
2010-09-18 00:21:49 -07:00
parent 96b94f60e9
commit 16d335aa19
5 changed files with 217 additions and 7 deletions

View File

@@ -49,12 +49,20 @@ GUACIO* guac_open(int fd) {
io->instructionbuf_used_length = 0;
/* Set limit */
io->transfer_limit = 256;
io->transfer_limit = 0;
return io;
}
void guac_transfer(GUACIO* io, int fd) {
guac_flush(io);
close(fd);
io->fd = fd;
}
void guac_close(GUACIO* io) {
guac_flush(io);
free(io);