Refactoring naar common bases - also, werkende RTMP streaming! Jammer dat er nog maar 1 frame wordt verwerkt... maar het werkt!
This commit is contained in:
parent
f4c02f33d8
commit
2d0aafc179
27 changed files with 159 additions and 1594 deletions
41
sockets/sw_unix.h
Normal file
41
sockets/sw_unix.h
Normal file
|
@ -0,0 +1,41 @@
|
|||
// C++ Socket Wrapper
|
||||
// SocketW Unix socket header
|
||||
//
|
||||
// Started 020316
|
||||
//
|
||||
// License: LGPL v2.1+ (see the file LICENSE)
|
||||
// (c)2002-2003 Anders Lindström
|
||||
|
||||
/***********************************************************************
|
||||
* This library is free software; you can redistribute it and/or *
|
||||
* modify it under the terms of the GNU Lesser General Public *
|
||||
* License as published by the Free Software Foundation; either *
|
||||
* version 2.1 of the License, or (at your option) any later version. *
|
||||
***********************************************************************/
|
||||
|
||||
#ifndef sw_unix_H
|
||||
#define sw_unix_H
|
||||
#ifndef __WIN32__
|
||||
|
||||
#include "sw_internal.h"
|
||||
#include "sw_base.h"
|
||||
#include <string>
|
||||
|
||||
// Simple streaming Unix class
|
||||
class DECLSPEC SWUnixSocket : public SWBaseSocket
|
||||
{
|
||||
public:
|
||||
SWUnixSocket(block_type block=blocking);
|
||||
~SWUnixSocket();
|
||||
|
||||
// bind and connect to the socket file "path"
|
||||
virtual bool bind(std::string path, SWBaseError *error = NULL);
|
||||
virtual bool connect(std::string path, SWBaseError *error = NULL);
|
||||
|
||||
protected:
|
||||
virtual void get_socket();
|
||||
virtual SWBaseSocket* create(int socketdescriptor, SWBaseError *error);
|
||||
};
|
||||
|
||||
#endif /* __WIN32__ */
|
||||
#endif /* sw_unix_H */
|
Loading…
Add table
Add a link
Reference in a new issue