Do flow-specific setsockopt() before accept()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user