Skip to content

sco_net_v1.get_peer_name

Copies the peer’s chosen name (UTF-8) into buf, NUL-terminated, cut to cap - 1 bytes. SCO_NOT_FOUND: no such peer in the active session. SCO_BAD_ARG: buf NULL or cap 0.

sco_result (*)(uint64_t, char *, uint32_t)

Service index

Property Value
Symbol sco_net_v1.get_peer_name
Record ID sco-net-v1-get-peer-name
Service sco.net
Table sco_net_v1
Version macro SCO_NET_VERSION_1_0
Packed table version 65536
Since / availability size >= 32; 1.0
Complete member extent (x64 bytes) 32
Table size (x64 bytes) 64

Header source

sco_result (*get_peer_name)(uint64_t peer_id, char* buf, uint32_t cap);
Copies the peer’s chosen name (UTF-8) into buf, NUL-terminated, cut to cap - 1 bytes. SCO_NOT_FOUND: no such peer in the active session. SCO_BAD_ARG: buf NULL or cap 0.

Absent table: query_service NOT_FOUND. Stopped result methods: UNAVAILABLE; self-taking methods reject invalid/released self with BAD_ARG; allocation exceptions: TOO_MANY. Additional failures/output state unspecified unless described in the buffer contract.

Absent table: query_service NOT_FOUND.

Caller buffers; sends copied, callbacks borrow buf for call only. Host owns channels/messages; no allocation transfer.

Any thread; callbacks game thread. Callbacks may call any method in this table.

callbacks game thread.

Callbacks may call any method in this table.

No delivery cancellation API; ordinary unload/non-retained crash cleanup drops channels and queued messages. Retained-provider faults skip owner resource-release hooks and require restart; backing resources remain retained, not safe for cached calls.

Status labels are copied verbatim from the catalogue: direct is native access; typed-wrapper is wrapper-backed; restricted is a subset/adaptation; unsupported means no supported route is established. No status implies universal safety.

Language Catalogue status Source evidence / wrapper tokens
c direct include/sco_net.h
(*get_peer_name)
cpp typed-wrapper include/scosdk/net.hpp
if (!detail::CanCall(t_, &sco_net_v1::get_peer_name) || t_->get_peer_name(peer, buf, sizeof buf) != SCO_OK) return {};
csharp unsupported docs/sdk-csharp.md
There are no C# wrappers for sco.ipc and sco.net yet
lua unsupported docs/net.md
The C# (Sco.Sdk) and Lua layers come in a follow-up

None identified in the catalogue; this is not proof none can exist.

ABI pins prove layout, not semantic behavior or a live game session.