# SocketReceiveMessageResult

`import { SocketReceiveMessageResult } from "destack:net/binding";`

Inbound message result.

```ds title="SocketReceiveMessageResult"
export struct SocketReceiveMessageResult {
    bytes: uint64;
    address: SocketAddress;
    flags: SocketMessageFlags;
    controlBytes: uint64;
    handleCount: uint64;
    credentials: SocketCredentials;
    isPayloadTruncated: boolean;
    isControlTruncated: boolean;
}
```

[language/library/src/net/binding/socket.ds:129:146](https://github.com/destack-sh/destack/blob/main/language/library/src/net/binding/socket.ds#L129-L146)

## Members

### `bytes: uint64`

Payload bytes received.

### `address: SocketAddress`

Source address when returned by the host.

### `flags: SocketMessageFlags`

Flags returned by the host.

### `controlBytes: uint64`

Ancillary control bytes written.

### `handleCount: uint64`

Resource handles written.

### `credentials: SocketCredentials`

Peer credentials when available.

### `isPayloadTruncated: boolean`

Whether payload bytes were truncated.

### `isControlTruncated: boolean`

Whether ancillary control bytes were truncated.
