mirror of https://github.com/flaggo/pydu.git
add doc for network.get_free_port
This commit is contained in:
parent
c18cb69c3a
commit
489142364d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue