Commit graph

67 commits

Author SHA1 Message Date
Thulinma
c6bb67c4b9 Improvements to HTTP::Parser - now builds responses and requests by reference and has getUrl() method to get the URL without URI-parameters. 2012-08-31 16:56:50 +02:00
Thulinma
4a940f7514 Improved seeking in DTSC::File, also, now tested working. 2012-08-31 16:56:50 +02:00
Peter Wu
8c8bf628b9 Do not prevent user from overriding CXXFLAGS
make CXXFLAGS=-O0 would not work without this.
2012-08-31 13:10:04 +02:00
Thulinma
8ada0103dd Merge branch 'master' into development
Conflicts:
	lib/dtsc.cpp
2012-08-31 10:44:14 +02:00
Thulinma
442abc67a8 Merge branch 'master' into development 2012-08-31 10:39:42 +02:00
Thulinma
b8a2993c73 Implement decent seeking in DTSC::File. 2012-08-31 10:39:24 +02:00
Thulinma
c6407b3aa1 Made FLV metadata more like most FLV files. 2012-08-31 10:38:53 +02:00
Peter Wu
e8a20c146b stream: fix headers and missing static keyword 2012-08-30 12:30:11 +02:00
Peter Wu
740d46d4be Fix compile warnings
Todo: error checking for DTSC::File::getHeader
2012-08-30 12:26:05 +02:00
Peter Wu
9c0aa93bfd Move Socket::*Stream > Util::Stream::* 2012-08-30 12:23:40 +02:00
Thulinma
f9e700c5e1 Get length instead of duration when converting to FLV metadata. 2012-08-30 11:50:06 +02:00
Thulinma
a995e7215d Only sockets can be shut down. 2012-08-30 11:28:36 +02:00
Thulinma
870f71333b Updated socket library to include socket simulation for filedescriptors. 2012-08-30 11:19:46 +02:00
Peter Wu
940fb7eb4c Merge branch 'master' into development 2012-08-30 11:17:57 +02:00
Peter Wu
f11ce43887 Fix compile warnings
Todo: error checking for DTSC::File::getHeader
2012-08-30 11:16:49 +02:00
Thulinma
a2f37a1bbd Add version number as a static member (libver) of Util::Config. 2012-08-28 23:39:42 +02:00
Peter Wu
c404624774 flv: add duration metadata 2012-08-28 17:08:53 +02:00
Thulinma
3ec56cf675 Change Util::Config to be able to return arrays on request. 2012-08-28 11:01:59 +02:00
Thulinma
c6e2f6bdd3 Changed version to 1.0.0 2012-08-26 23:57:25 +02:00
Thulinma
18a1a386df Do not send Content-Length headers when they are zero. 2012-08-26 22:18:26 +02:00
Thulinma
84db148405 Fix HTTP::Parser to no longer send empty headers. 2012-08-26 21:19:48 +02:00
Thulinma
0e0ecb1bdf Stripped some unused code from Socket::Connection and FLV::Tag, made some Socket::Connection methods private. 2012-08-26 20:08:16 +02:00
Thulinma
9ca532523c Typo fix. 2012-08-25 22:16:05 +02:00
Thulinma
fd2211f85f Drop the parsed query string from url for incoming HTTP data. 2012-08-25 22:15:23 +02:00
Thulinma
95a11c88d5 Add host overwriting functionality to Socket::Connection. 2012-08-25 22:07:15 +02:00
Peter Wu
689eb74945 Fix compiler warnings (mainly signed/unsigned comparisons) 2012-08-25 19:21:58 +02:00
Thulinma
9b3037d0e4 Added basic pretty-printing to MP4 boxes. 2012-08-24 17:14:27 +02:00
Thulinma
ca0fd8a641 Fix Util::TerminationNotifier deadlock when calling malloc() inside a signal handler. 2012-08-24 15:09:35 +02:00
Thulinma
5e640c09b9 Remove bootstrap generator from MP4 - this is now part of DMS. 2012-08-24 12:09:46 +02:00
Thulinma
a6b072988c Added toNetPacked() to JSON, removed DTSC::DTMI completely (now superseded by JSON). 2012-08-24 11:32:02 +02:00
Thulinma
4ac7c54698 Updated mp4 to parse some information from JSON-style metadata, guesses values if not present. 2012-08-23 17:06:25 +02:00
Thulinma
48bf3d189a Half-updated flv_tag with JSON metadata support. 2012-08-23 17:05:53 +02:00
Thulinma
75a420db2a Fixed DTSC::File (now actually works) and updated DTSC metadata information in the documentation. 2012-08-23 17:05:32 +02:00
Thulinma
8a9d4d6ee1 First version of DTSC::File for easy management of DTSC files. 2012-08-23 11:09:10 +02:00
Thulinma
0c5f449963 Added DTMI support to JSON library. 2012-08-23 11:09:10 +02:00
Peter Wu
36c7eed7e3 procs: fix leakage of pids in child process 2012-08-15 11:49:21 +02:00
Peter Wu
fa5d27b085 procs: add support for easy redirection to dev null
Simply set a NULL pointer for a fd, StartPiped will then take care of opening
/dev/null, redirecting fds to it and close it when necessary.
2012-08-15 11:49:21 +02:00
Peter Wu
b994bab6d2 Add new process function including fds
Based on BiPipe from MistPlayer branch

v2: fix dup2 of wrong fd, fix invalid fd debug print
2012-08-15 11:49:21 +02:00
Peter Wu
06167128bf Add process termination registration
Edited patch because of context change due to:
commit 28548f35b0
Author: Thulinma <jaron@vietors.com>
Date:   Tue Aug 14 20:53:05 2012 +0200

    Do not report part-termination of processes.
2012-08-15 11:48:23 +02:00
Thulinma
3f089117c7 Apply lekensteyn's workarounds from the DMS repository to prevent compiler warnings. 2012-08-15 03:03:05 +02:00
Thulinma
a86051b319 Removed socket non-errors, added success message for opening listening sockets. 2012-08-14 20:53:32 +02:00
Thulinma
28548f35b0 Do not report part-termination of processes. 2012-08-14 20:53:05 +02:00
Thulinma
977a8617a2 Fix Config::activate to not check nonexistant options. 2012-08-14 20:42:35 +02:00
Thulinma
08f28d134a Report name of non-existant options to help debugging. 2012-08-13 07:59:24 +02:00
root
4641efb79d Fortify HTTP parser/generator code. 2012-08-06 05:35:11 +02:00
Thulinma
d1e2132879 Updated to new config system. 2012-07-20 17:49:16 +02:00
Thulinma
5562bea8a0 Added handy converter functions to JSON. 2012-07-20 17:48:57 +02:00
Thulinma
a36ce260ac Fixed JSON bool evaluations. 2012-07-20 17:48:40 +02:00
Thulinma
935d5635e5 Fix multiple-including. 2012-07-20 17:46:22 +02:00
Thulinma
b9a75a320f Added missing JSON "operator bool()" and size() methods. 2012-07-12 01:03:40 +02:00