Struct OperationResult
Stores the result of a network operation. This is normally used when a job needs to return a result to its caller. For example the ReceiveJobArguments structure contains one which is used to report the result of receive operations on network interfaces, which is then reported through ReceiveErrorCode.
Implements
Inherited Members
Namespace: Unity.Networking.Transport
Assembly: Unity.Networking.Transport.dll
Syntax
public struct OperationResult : IDisposable
Properties
ErrorCode
Get and set the error code for the operation. Setting a non-zero value will result in the error also being logged to the console.
Declaration
public int ErrorCode { get; set; }
Property Value
Type | Description |
---|---|
int | Numerical error code (0 is success, anything else is an error). |
Methods
Dispose()
Declaration
public void Dispose()