Skip to content

Commit

Permalink
update std/net
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Oct 17, 2024
1 parent 13e944e commit 13a929e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/std/net.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ It will forward any exceptional from network connectors.
```jule
fn ConnectTimeout(network: Network, addr: str, timeout: time::DurInt)!: Conn
```
Same as `Connect`, but uses timeout. For UDP networks, timeout will be ignored. Timeout precision is microseconds. If the timeout is below one microsecond it will be ignored.
Same as `Connect`, but uses timeout. For UDP networks, timeout will be ignored. Timeout precision is microseconds. If the timeout is below one microsecond it will be ignored. If timeout is invalid or out of range, throws exceptional with Error.InvalidTimeout.

---

Expand Down Expand Up @@ -446,6 +446,14 @@ trait Addr {

## Enums

`enum Error`\
Common connection error codes.

**Fields:**
- `InvalidTimeout`: Timeout value is not valid. Duration is out of range.

---

`enum Network: str`\
Network names.

Expand Down

0 comments on commit 13a929e

Please sign in to comment.