Updated and changed namespace for socket library, added IPv6 support, attempt to fix RTMP

This commit is contained in:
Thulinma 2011-06-20 13:33:17 +02:00
commit 694a0075ee
16 changed files with 48 additions and 461 deletions

View file

@ -1,4 +1,4 @@
SRC = main.cpp ../util/ddv_socket.cpp
SRC = main.cpp ../util/socket.cpp
OBJ = $(SRC:.cpp=.o)
OUT = DDV_Conn_RAW
INCLUDES =

View file

@ -2,7 +2,7 @@
/// Contains the main code for the RAW connector.
#include <iostream>
#include "../util/ddv_socket.h"
#include "../util/socket.h"
/// Contains the main code for the RAW connector.
/// Expects a single commandline argument telling it which stream to connect to,
@ -15,7 +15,7 @@ int main(int argc, char ** argv) {
std::string input = "/tmp/shared_socket_";
input += argv[1];
//connect to the proper stream
DDV::Socket S(input);
Socket::Connection S(input);
if (!S.connected()){
std::cout << "Could not open stream " << argv[1] << std::endl;
return 1;