libfilezilla
Loading...
Searching...
No Matches
unix.hpp
Go to the documentation of this file.
1#ifndef LIBFILEZILLA_GLUE_UNIX_HEADER
2#define LIBFILEZILLA_GLUE_UNIX_HEADER
3
8#include "../libfilezilla.hpp"
9
10#ifndef FZ_WINDOWS
11
12namespace fz {
13
19bool FZ_PUBLIC_SYMBOL set_cloexec(int fd);
20
30
36
39
55int FZ_PUBLIC_SYMBOL send_fd(int socket, fz::buffer & buf, int fd, int & error);
56
66int FZ_PUBLIC_SYMBOL read_fd(int socket, fz::buffer & buf, int &fd, int & error);
67
69int FZ_PUBLIC_SYMBOL set_nonblocking(int fd, bool non_blocking = true);
70
71}
72
73#else
74#error This file is not for Windows
75#endif
76
77#endif
The buffer class is a simple buffer where data can be appended at the end and consumed at the front....
Definition buffer.hpp:27
Sets some global macros and further includes string.hpp.
The namespace used by libfilezilla.
Definition apply.hpp:17
@ error
Operationf failed.
bool dispatch(event_base const &ev, F &&f)
Dispatch for simple_event<> based events to simple functors.
Definition event_handler.hpp:199