VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvVideoStream
DtTcpTaskElement.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2012 VT-MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvVideoStream/vrvVideoStream.h
>
13
14
#include <
vrvVideoStream/DtImageTaskElement.h
>
15
16
class
DtInetSocket;
17
class
DtInetTcpSocket;
18
class
DtInetSocketMgr;
19
20
namespace
makVrv
21
{
22
class
DtVideoFrameBuffer;
23
28
class
DT_DLL_VRVVIDEOSTREAM
DtTcpTaskElement
:
public
DtImageTaskElement
29
{
30
public
:
33
friend
class
DtTcpTaskElementCreator
;
34
36
virtual
~
DtTcpTaskElement
();
37
39
virtual
void
setPort(
int
port );
40
42
virtual
int
port()
const
;
43
45
virtual
void
setFromRecord(
46
const
makArchives::DtImageTaskRecord
& config );
47
49
virtual
bool
configure();
50
51
protected
:
53
DtTcpTaskElement
(
DtDe
& de,
DtProcessImageTask
* owningTask );
54
56
void
handlePreFrame();
57
59
void
handleProcessFrame(
DtVideoFrameBuffer
* frame );
60
62
bool
handleSocketAddition( DtInetSocket* socket );
63
65
bool
handleSocketRemoval( DtInetSocket* socket );
66
67
protected
:
70
static
bool
socketAdditionCallback(DtInetSocket* sock,
void
* usr);
71
74
static
bool
socketRemovalCallback(DtInetSocket* sock,
void
* usr);
75
76
private
:
78
DtTcpTaskElement
();
79
81
DtTcpTaskElement
(
const
DtTcpTaskElement
& orig );
82
84
DtTcpTaskElement
& operator=(
const
DtTcpTaskElement
& rhs );
85
86
87
protected
:
88
int
myPort
;
89
DtInetSocketMgr*
mySocketManager
;
90
DtInetTcpSocket*
myConnectedSocket
;
91
};
92
96
class
DT_DLL_VRVVIDEOSTREAM
DtTcpTaskElementCreator
97
:
public
DtImageTaskElementCreator
98
{
99
public
:
101
friend
class
DtVideoStreamManager
;
102
104
DtTcpTaskElementCreator
();
105
107
virtual
~
DtTcpTaskElementCreator
();
108
109
protected
:
111
virtual
DtImageTaskElement
* create(
DtDe
& de,
112
DtProcessImageTask
* owningTask );
113
};
114
}
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)