---
name: "function::sock_state_num2str"
section: "3stap"
platform: "linux"
package: "systemtap-doc"
version: "5.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/function::sock_state_num2str"
---

# function::sock\_state\_num2str(3stap)

Given a socket state number, return a string representation

## NAME

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

## SYNOPSIS

```
    sock_state_num2str:string(state:long)
```

## ARGUMENTS

*state*

The state number

## SEE ALSO0

[*tapset::socket*(3stap)](/tapset::socket/3stap.md)
