Move Socket::*Stream > Util::Stream::*
This commit is contained in:
parent
a995e7215d
commit
9c0aa93bfd
5 changed files with 87 additions and 48 deletions
23
lib/stream.h
Normal file
23
lib/stream.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
/// \file stream.h
|
||||
/// Utilities for handling streams.
|
||||
|
||||
#pragma once
|
||||
#include <string>
|
||||
#include <mist/socket.h>
|
||||
|
||||
namespace Util{
|
||||
class Stream{
|
||||
/// Sanitize a streamname.
|
||||
void sanitizeName(std::string & streamname);
|
||||
public:
|
||||
/// Get a connection to a Live stream.
|
||||
static Socket::Connection getLive(std::string streamname);
|
||||
/// Get a connection to a VoD stream.
|
||||
static Socket::Connection getVod(std::string streamname);
|
||||
/// Probe for available streams. Currently first VoD, then Live.
|
||||
static Socket::Connection getStream(std::string streamname);
|
||||
|
||||
/// Create a Live stream on the system.
|
||||
static Socket::Server makeLive(std::string streamname);
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue