Client and Makefiles Edited

This commit is contained in:
Erik Zandvliet 2010-06-16 14:42:43 +02:00
parent 60d41aec50
commit 0b3b9df50a
3 changed files with 4 additions and 2 deletions

View file

@ -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++

View file

@ -12,7 +12,9 @@ int main() {
mySocket.connect("/tmp/socketfile");
char buffer[500000];
int msg;
std::string input;
// do something with mySocket...
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);

View file

@ -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++