From edd200248b945c0ebab0f051bf88f90980d0fe2c Mon Sep 17 00:00:00 2001 From: root Date: Wed, 16 Jun 2010 15:06:06 +0200 Subject: [PATCH] Client waits for http-header --- Client/Makefile | 2 +- Client/main.cpp | 3 ++- Server/Makefile | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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++