unrealcv
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
unrealcv.SocketMessage Class Reference
Inheritance diagram for unrealcv.SocketMessage:

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
 

Detailed Description

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

Member Function Documentation

§ ReceivePayload()

def unrealcv.SocketMessage.ReceivePayload (   cls,
  socket 
)
Return only payload, not the raw message, None if failed

§ WrapAndSendPayload()

def unrealcv.SocketMessage.WrapAndSendPayload (   cls,
  socket,
  payload 
)
Send payload, true if success, false if failed

The documentation for this class was generated from the following file: