|
unrealcv
|
Public Member Functions | |
| def | __init__ (self, payload) |
| def | ReceivePayload (cls, socket) |
| def | WrapAndSendPayload (cls, socket, payload) |
Public Attributes | |
| payload_size | |
Static Public Attributes | |
| magic = ctypes.c_uint32(0x9E2B83C1).value | |
Define the format of a message. This class is defined similar to the class FNFSMessageHeader in UnrealEngine4, but without CRC check. The magic number is from Unreal implementation See https://github.com/EpicGames/UnrealEngine/blob/dff3c48be101bb9f84633a733ef79c91c38d9542/Engine/Source/Runtime/Sockets/Public/NetworkMessage.h
| def unrealcv.SocketMessage.ReceivePayload | ( | cls, | |
| socket | |||
| ) |
Return only payload, not the raw message, None if failed
| def unrealcv.SocketMessage.WrapAndSendPayload | ( | cls, | |
| socket, | |||
| payload | |||
| ) |
Send payload, true if success, false if failed
1.8.12