C# 클래스 NetMessenger, ThreeDWorld

Manages connections with all clients
상속: MonoBehaviour
파일 보기 프로젝트 열기: dicarlolab/ThreeDWorld 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
avatarPrefab Avatar
clientInfo RequestSocket
clientSimulation RequestSocket
debugNetworkMessages bool
environmentScene string
hostAddress string
logSimpleTimeInfo bool
logTimingInfo bool
portNumber string
portNumber_info string
saveDebugImageFiles bool
shouldCreateServer bool
shouldCreateTestClient bool
usePngFiles bool

공개 메소드들

메소드 설명
AreAllAvatarsReady ( ) : bool
CreateJoinMsgJson ( ) : JsonData
CreateMsgJson ( string msgType ) : JsonData
GetAllAvatars ( ) : List
GetServerForClient ( RequestSocket client ) : ResponseSocket
HandleClientFrameMessage ( RequestSocket client, NetMQMessage msg ) : void
HandleFrameMessage ( ResponseSocket server, NetMQMessage msg ) : void
Init ( string hostAddress, string portNumber, bool shouldCreateTestClient, bool shouldCreateServer, bool debugNetworkMessages, bool logSimpleTimingInfo, bool logDetailedTimeInfo, string preferredImageFormat, bool saveDebugImageFiles, string environmentScene ) : void
Init ( string hostAddress, string portNumber, string portNumber_info, bool shouldCreateTestClient, bool shouldCreateServer, bool debugNetworkMessages, bool logSimpleTimingInfo, bool logDetailedTimeInfo, string preferredImageFormat, bool saveDebugImageFiles, string environmentScene ) : void
OnClientJoin ( ResponseSocket server, JsonData data ) : void
ReadOutMessage ( NetMQMessage msg ) : string
ReceiveSceneSwitch ( ResponseSocket server, JsonData jsonData ) : void
RecieveClientInput ( ResponseSocket server, JsonData jsonData ) : void
SendAndReceiveMongoDB ( JsonData jsonData ) : JsonData
SendFrameUpdate ( CameraStreamer, streamCapture, Avatar a ) : void
SimulateClientInput ( RequestSocket client, JsonData jsonData, NetMQMessage msg ) : void
colorUIDToInt ( Color colorUID ) : int
colorUIDToString ( Color colorUID ) : string

비공개 메소드들

메소드 설명
CreateNewSocketConnection ( ) : void
CreateTestClient ( ResponseSocket server ) : void
FixedUpdate ( ) : void
OnDisable ( ) : void
ReadOutFrame ( NetMQFrame frame ) : string
Start ( ) : void
Update ( ) : void
sceneWasLoaded ( Scene scene, LoadSceneMode mode ) : void

메소드 상세

AreAllAvatarsReady() 공개 메소드

public AreAllAvatarsReady ( ) : bool
리턴 bool

CreateJoinMsgJson() 공개 정적인 메소드

public static CreateJoinMsgJson ( ) : JsonData
리턴 JsonData

CreateMsgJson() 공개 정적인 메소드

public static CreateMsgJson ( string msgType ) : JsonData
msgType string
리턴 JsonData

GetAllAvatars() 공개 메소드

public GetAllAvatars ( ) : List
리턴 List

GetServerForClient() 공개 메소드

public GetServerForClient ( RequestSocket client ) : ResponseSocket
client RequestSocket
리턴 ResponseSocket

HandleClientFrameMessage() 공개 메소드

public HandleClientFrameMessage ( RequestSocket client, NetMQMessage msg ) : void
client RequestSocket
msg NetMQMessage
리턴 void

HandleFrameMessage() 공개 메소드

public HandleFrameMessage ( ResponseSocket server, NetMQMessage msg ) : void
server ResponseSocket
msg NetMQMessage
리턴 void

Init() 공개 메소드

public Init ( string hostAddress, string portNumber, bool shouldCreateTestClient, bool shouldCreateServer, bool debugNetworkMessages, bool logSimpleTimingInfo, bool logDetailedTimeInfo, string preferredImageFormat, bool saveDebugImageFiles, string environmentScene ) : void
hostAddress string
portNumber string
shouldCreateTestClient bool
shouldCreateServer bool
debugNetworkMessages bool
logSimpleTimingInfo bool
logDetailedTimeInfo bool
preferredImageFormat string
saveDebugImageFiles bool
environmentScene string
리턴 void

Init() 공개 메소드

public Init ( string hostAddress, string portNumber, string portNumber_info, bool shouldCreateTestClient, bool shouldCreateServer, bool debugNetworkMessages, bool logSimpleTimingInfo, bool logDetailedTimeInfo, string preferredImageFormat, bool saveDebugImageFiles, string environmentScene ) : void
hostAddress string
portNumber string
portNumber_info string
shouldCreateTestClient bool
shouldCreateServer bool
debugNetworkMessages bool
logSimpleTimingInfo bool
logDetailedTimeInfo bool
preferredImageFormat string
saveDebugImageFiles bool
environmentScene string
리턴 void

OnClientJoin() 공개 메소드

public OnClientJoin ( ResponseSocket server, JsonData data ) : void
server ResponseSocket
data JsonData
리턴 void

ReadOutMessage() 공개 정적인 메소드

public static ReadOutMessage ( NetMQMessage msg ) : string
msg NetMQMessage
리턴 string

ReceiveSceneSwitch() 공개 메소드

public ReceiveSceneSwitch ( ResponseSocket server, JsonData jsonData ) : void
server ResponseSocket
jsonData JsonData
리턴 void

RecieveClientInput() 공개 메소드

public RecieveClientInput ( ResponseSocket server, JsonData jsonData ) : void
server ResponseSocket
jsonData JsonData
리턴 void

SendAndReceiveMongoDB() 공개 메소드

public SendAndReceiveMongoDB ( JsonData jsonData ) : JsonData
jsonData JsonData
리턴 JsonData

SendFrameUpdate() 공개 메소드

public SendFrameUpdate ( CameraStreamer, streamCapture, Avatar a ) : void
streamCapture CameraStreamer,
a Avatar
리턴 void

SimulateClientInput() 공개 메소드

public SimulateClientInput ( RequestSocket client, JsonData jsonData, NetMQMessage msg ) : void
client RequestSocket
jsonData JsonData
msg NetMQMessage
리턴 void

colorUIDToInt() 공개 정적인 메소드

public static colorUIDToInt ( Color colorUID ) : int
colorUID Color
리턴 int

colorUIDToString() 공개 정적인 메소드

public static colorUIDToString ( Color colorUID ) : string
colorUID Color
리턴 string

프로퍼티 상세

avatarPrefab 공개적으로 프로퍼티

public Avatar avatarPrefab
리턴 Avatar

clientInfo 공개적으로 프로퍼티

public RequestSocket clientInfo
리턴 RequestSocket

clientSimulation 공개적으로 프로퍼티

public RequestSocket clientSimulation
리턴 RequestSocket

debugNetworkMessages 공개적으로 프로퍼티

public bool debugNetworkMessages
리턴 bool

environmentScene 공개적으로 프로퍼티

public string environmentScene
리턴 string

hostAddress 공개적으로 프로퍼티

public string hostAddress
리턴 string

logSimpleTimeInfo 공개적으로 정적으로 프로퍼티

public static bool logSimpleTimeInfo
리턴 bool

logTimingInfo 공개적으로 정적으로 프로퍼티

public static bool logTimingInfo
리턴 bool

portNumber 공개적으로 프로퍼티

public string portNumber
리턴 string

portNumber_info 공개적으로 프로퍼티

public string portNumber_info
리턴 string

saveDebugImageFiles 공개적으로 프로퍼티

public bool saveDebugImageFiles
리턴 bool

shouldCreateServer 공개적으로 프로퍼티

public bool shouldCreateServer
리턴 bool

shouldCreateTestClient 공개적으로 프로퍼티

public bool shouldCreateTestClient
리턴 bool

usePngFiles 공개적으로 프로퍼티

public bool usePngFiles
리턴 bool