radare2/libr/include/r_socket.h
pancake c5e588e6e5 * Initial import of libr
- Previous commits has been reported in the ChangeLog file
  - hg log has been lost (moved inside ChangeLog)
  - Old radare1 repository has removed all the libr
2009-02-05 22:08:46 +01:00

14 lines
431 B
C

#ifndef _INCLUDE_SOCKET_H_
#define _INCLUDE_SOCKET_H_
int r_socket_ready(int fd, int secs, int usecs);
int r_socket_read(int fd, unsigned char *read, int len);
int r_socket_write(int fd, unsigned char *buf, int len);
int r_socket_connect(char *host, int port);
int r_socket_listen(int port);
int r_socket_accept(int fd);
int r_socket_fgets(int fd, char *buf, int size);
void r_socket_printf(int fd, const char *fmt, ...);
#endif