# \#port\_command

**URL:** https://erlangforums.com/tag/port-command/810.md

[Latest](https://erlangforums.com/latest.md) · [Categories](https://erlangforums.com/categories.md) · [Tags](https://erlangforums.com/tags.md)

---

## [erlang:port\_command(Sock, Data, \[force\]) receive timeout reply frequently](https://erlangforums.com/t/erlang-port-command-sock-data-force-receive-timeout-reply-frequently/4392)

<div class="topic-metadata">

**Author:** [@skyman\_cn](https://erlangforums.com/u/skyman_cn)\
**Replies:** 0\
**Last updated:** [January 16, 2025, 7:48am UTC](https://erlangforums.com/t/erlang-port-command-sock-data-force-receive-timeout-reply-frequently/4392 "2025-01-16T07:48:37Z")

</div>

We use Erlang OTP 23, and we use erlang:port\_command(Sock, Data, \[force\]) to send socket message to game client. Read erlang doc: "the force flag:The calling process is not suspended if the port is busy, instead the…
