zx::socket

Summary

Inheritance

Inherits from: zx::object< socket >

Constructors and Destructors

socket()
socket(zx_handle_t value)
socket(handle && h)
socket(socket && other)

Public static attributes

TYPE = ZX_OBJ_TYPE_SOCKET
constexpr zx_obj_type_t

Public functions

operator=(socket && other)
socket &
read(uint32_t options, void *buffer, size_t len, size_t *actual)
zx_status_t
set_disposition(uint32_t disposition, uint32_t disposition_peer)
zx_status_t
write(uint32_t options, const void *buffer, size_t len, size_t *actual)
zx_status_t

Public static functions

create(uint32_t options, socket *endpoint0, socket *endpoint1)
zx_status_t

Public static attributes

TYPE

constexpr zx_obj_type_t TYPE = ZX_OBJ_TYPE_SOCKET

Public functions

operator=

socket & operator=(
  socket && other
)

read

zx_status_t read(
  uint32_t options,
  void *buffer,
  size_t len,
  size_t *actual
)

set_disposition

zx_status_t set_disposition(
  uint32_t disposition,
  uint32_t disposition_peer
)

socket

constexpr socket()=default

socket

 socket(
  zx_handle_t value
)

socket

 socket(
  handle && h
)

socket

 socket(
  socket && other
)

write

zx_status_t write(
  uint32_t options,
  const void *buffer,
  size_t len,
  size_t *actual
)

Public static functions

create

zx_status_t create(
  uint32_t options,
  socket *endpoint0,
  socket *endpoint1
)