]> git.sesse.net Git - greproxy/blobdiff - greprotocol.cpp
Add FEC.
[greproxy] / greprotocol.cpp
index 4a634156789f0aa3848d8ac1aaf5172a65d0bd4d..2fb2503d3e0cbc240d9220e5c072cf24ca79edd0 100644 (file)
@@ -1,9 +1,11 @@
+#include <arpa/inet.h>
+#include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 
 #include "greprotocol.h"
-#include "reorderer.h"
 
 using namespace std;
 
@@ -72,7 +74,7 @@ int GREProtocol::fd() const
        return sock;
 }
 
-void GREProtocol::read_packet(Protocol *sender)
+void GREProtocol::read_packet(Sender *sender)
 {
        struct sockaddr_storage addr;
        socklen_t addrlen = sizeof(addr);