HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
TIL_DeepSocketHandler.h
Go to the documentation of this file.
1
/*
2
* PROPRIETARY INFORMATION. This software is proprietary to
3
* Side Effects Software Inc., and is not to be reproduced,
4
* transmitted, or disclosed in any way without written permission.
5
*
6
* NAME: TIL_DeepSocketHandler.h ( TIL Library, C++)
7
*
8
* COMMENTS: This class handles reading the interface for reading an image
9
* from a socket. The class will read messages from the socket
10
* and send the data to the reader.
11
* The class assumes that the initial connection has been made and
12
* that the deep reader is configured to accept data.
13
*/
14
15
#ifndef __TIL_DeepSocketHandler__
16
#define __TIL_DeepSocketHandler__
17
18
#include "
TIL_API.h
"
19
#include <
UT/UT_SysClone.h
>
20
21
class
UT_NetSocket
;
22
class
UT_NetPacket
;
23
class
TIL_DeepReader
;
24
25
class
TIL_API
TIL_DeepSocketHandler
{
26
public
:
27
TIL_DeepSocketHandler
(pid_t client,
28
UT_NetSocket
*socket,
29
TIL_DeepReader
*reader);
30
~
TIL_DeepSocketHandler
();
31
32
int64
getMemoryUsage(
bool
inclusive)
const
;
33
34
int
getFileDescriptor()
const
;
35
UT_NetSocket
*
getSocket
() {
return
mySocket; }
36
37
int
processInput(
int
max_packets = 1e8);
38
bool
terminate(
bool
kill_proc =
true
);
39
void
setMousePosition(
float
mx,
float
my,
float
radius);
40
void
requestMaterialStyleSheet(
int
style_sheet_index);
41
void
autoUpdate();
42
void
halt();
43
44
private
:
45
void
clean();
46
bool
int32Message(
int32
*ival,
int
nints);
47
bool
fpreal32Message(
fpreal32
*fval,
int
nfloats);
48
49
UT_NetSocket
*mySocket;
50
UT_NetPacket
*myPacket;
51
TIL_DeepReader
*myReader;
52
pid_t myPid;
53
float
myMouseX;
54
float
myMouseY;
55
float
myMouseRadius;
56
bool
mySwapBytes;
57
};
58
59
#endif
TIL_DeepSocketHandler::getSocket
UT_NetSocket * getSocket()
Definition:
TIL_DeepSocketHandler.h:35
UT_NetSocket
Definition:
UT_NetSocket.h:31
int32
int int32
Definition:
SYS_Types.h:39
TIL_API.h
fpreal32
float fpreal32
Definition:
SYS_Types.h:200
int64
long long int64
Definition:
SYS_Types.h:116
TIL_DeepSocketHandler
Definition:
TIL_DeepSocketHandler.h:25
TIL_DeepReader
Definition:
TIL_DeepReader.h:34
UT_NetPacket
Definition:
UT_NetPacket.h:30
TIL_API
#define TIL_API
Definition:
TIL_API.h:10
UT_SysClone.h
TIL
TIL_DeepSocketHandler.h
Generated on Mon Jan 25 2021 05:54:28 for HDK by
1.8.6