FUNCTION::SOCK\_STATE(3stap) Socket Tapset FUNCTION::SOCK\_STATE(3stap)

# [NAME](#NAME)

function::sock\_state\_num2str - Given a socket state number, return a string representation

# [SYNOPSIS](#SYNOPSIS)

```


    sock_state_num2str:string(state:long)
```

# [ARGUMENTS](#ARGUMENTS)

*state*

The state number

# [SEE ALSO0](#SEE_ALSO0)

[*tapset::socket*(3stap)](/man/enterprise-packages/systemtap/tapset::socket.3stap)

September 2026 SystemTap Tapset Reference Ver

---

Document: function::sock_state_num2str(3stap) from systemtap 5.6-r1 (Chainguard OS)
Source: https://sourceware.org/git/systemtap.git
