C# Class Steamworks.SteamUnifiedMessages

显示文件 Open project: rlabrecque/Steamworks.NET

Public Methods

Method Description
GetMethodResponseData ( ClientUnifiedMessageHandle hHandle, byte pResponseBuffer, uint unResponseBufferSize, bool bAutoRelease ) : bool

Gets a response in binary serialized form (and optionally release the corresponding allocated memory).

GetMethodResponseInfo ( ClientUnifiedMessageHandle hHandle, uint &punResponseSize, EResult &peResult ) : bool

Gets the size of the response and the EResult. Returns false if the response is not ready yet.

ReleaseMethod ( ClientUnifiedMessageHandle hHandle ) : bool

Releases the message and its corresponding allocated memory.

SendMethod ( string pchServiceMethod, byte pRequestBuffer, uint unRequestBufferSize, ulong unContext ) : ClientUnifiedMessageHandle

Sends a service method (in binary serialized form) using the Steam Client.

Returns a unified message handle (k_InvalidUnifiedMessageHandle if could not send the message).

SendNotification ( string pchServiceNotification, byte pNotificationBuffer, uint unNotificationBufferSize ) : bool

Sends a service notification (in binary serialized form) using the Steam Client.

Returns true if the notification was sent successfully.

Method Details

GetMethodResponseData() public static method

Gets a response in binary serialized form (and optionally release the corresponding allocated memory).

public static GetMethodResponseData ( ClientUnifiedMessageHandle hHandle, byte pResponseBuffer, uint unResponseBufferSize, bool bAutoRelease ) : bool
hHandle ClientUnifiedMessageHandle
pResponseBuffer byte
unResponseBufferSize uint
bAutoRelease bool
return bool

GetMethodResponseInfo() public static method

Gets the size of the response and the EResult. Returns false if the response is not ready yet.

public static GetMethodResponseInfo ( ClientUnifiedMessageHandle hHandle, uint &punResponseSize, EResult &peResult ) : bool
hHandle ClientUnifiedMessageHandle
punResponseSize uint
peResult EResult
return bool

ReleaseMethod() public static method

Releases the message and its corresponding allocated memory.

public static ReleaseMethod ( ClientUnifiedMessageHandle hHandle ) : bool
hHandle ClientUnifiedMessageHandle
return bool

SendMethod() public static method

Sends a service method (in binary serialized form) using the Steam Client.

Returns a unified message handle (k_InvalidUnifiedMessageHandle if could not send the message).

public static SendMethod ( string pchServiceMethod, byte pRequestBuffer, uint unRequestBufferSize, ulong unContext ) : ClientUnifiedMessageHandle
pchServiceMethod string
pRequestBuffer byte
unRequestBufferSize uint
unContext ulong
return ClientUnifiedMessageHandle

SendNotification() public static method

Sends a service notification (in binary serialized form) using the Steam Client.

Returns true if the notification was sent successfully.

public static SendNotification ( string pchServiceNotification, byte pNotificationBuffer, uint unNotificationBufferSize ) : bool
pchServiceNotification string
pNotificationBuffer byte
unNotificationBufferSize uint
return bool