diff --git a/Client/Makefile b/Client/Makefile index c0d40be8..e52f7a3e 100644 --- a/Client/Makefile +++ b/Client/Makefile @@ -1,6 +1,6 @@ SRC = main.cpp sockets/sw_base.cpp sockets/sw_inet.cpp sockets/sw_unix.cpp OBJ = $(SRC:.cpp=.o) -OUT = Socket +OUT = Client_PLS INCLUDES = CCFLAGS = -Wall -Wextra -funsigned-char -g CC = $(CROSS)g++ diff --git a/Client/main.cpp b/Client/main.cpp index 695d431a..62371add 100644 --- a/Client/main.cpp +++ b/Client/main.cpp @@ -12,7 +12,8 @@ int main() { mySocket.connect("/tmp/socketfile"); char buffer[500000]; int msg; - // do something with mySocket... + std::string input; + while (std::cin >> input && input != "") {} std::cout << "HTTP/1.1 200 OK\nConnection: close\nContent-Type: video/x-flv\n\n"; while(true) { msg = mySocket.recv(&buffer[0],10000); diff --git a/Server/Makefile b/Server/Makefile index c0afa672..9ba6c25b 100644 --- a/Server/Makefile +++ b/Server/Makefile @@ -1,6 +1,6 @@ SRC = main.cpp user.cpp sockets/sw_base.cpp sockets/sw_inet.cpp sockets/sw_unix.cpp OBJ = $(SRC:.cpp=.o) -OUT = Socket +OUT = Server_PLS INCLUDES = CCFLAGS = -Wall -Wextra -funsigned-char -g CC = $(CROSS)g++