add doc for network.get_free_port

This commit is contained in:
Prodesire 2017-12-08 22:16:04 +08:00
parent c18cb69c3a
commit 489142364d
1 changed files with 9 additions and 0 deletions

View File

@ -22,3 +22,12 @@ Network
True True
>>> is_ipv4('localhost.localdomain') >>> is_ipv4('localhost.localdomain')
False False
.. py:function:: pydu.network.get_free_port()
Get free port which could be bound.
>>> from pydu.network import get_free_port
>>> get_free_port()
57118