Do flow-specific setsockopt() before accept()

This commit is contained in:
Ian Gulliver
2016-02-29 22:17:37 -08:00
parent a093b8a1b6
commit b6a582e95a
8 changed files with 43 additions and 32 deletions

View File

@@ -1,9 +1,17 @@
#include <unistd.h>
#include "buf.h"
#include "socket.h"
#include "flow.h"
void flow_socket_connected(int fd, struct flow *flow) {
socket_connected(fd);
if (flow->socket_connected) {
flow->socket_connected(fd);
}
}
bool flow_hello(int fd, struct flow *flow, void *passthrough) {
if (!flow->get_hello) {
return true;