ray/io.h
Philipp Moritz e1b8711a01 Redis logging (#17)
* Redis logging

* Rearrange logging interfaces

* Fix test case

* Changes to logging interface and test case for logging

* Fixes

* Fix memory leaks

* Add interface method to destroy logger

* is_local -> is_direct

* Merge fix
2016-09-23 17:10:15 -07:00

22 lines
522 B
C

#ifndef IO_H
#define IO_H
#include <stdint.h>
/* Helper functions for socket communication. */
int bind_ipc_sock(const char *socket_pathname);
int connect_ipc_sock(const char *socket_pathname);
int accept_client(int socket_fd);
/* Reading and writing data */
void write_bytes(int fd, uint8_t *bytes, int64_t length);
void read_bytes(int fd, uint8_t **bytes, int64_t *length);
void write_string(int fd, char *message);
void write_formatted_string(int fd, const char *format, ...);
char *read_string(int fd);
#endif