-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed return type of network::connect in the docs.
- Loading branch information
1 parent
56cd472
commit 40cc746
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
doc/src/references/builtin/Networking/classes/network/methods/connect.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# connect | ||
Attempt to establish a connection with a server, only works when set up as a client. | ||
|
||
`bool network::connect(string hostname, uint16 port);` | ||
`uint64 network::connect(string hostname, uint16 port);` | ||
|
||
## Arguments: | ||
* string hostname: the hostname/IP address to connect to. | ||
* uint16 port: the port to use. | ||
|
||
## Returns: | ||
bool: true if the connection was successful, false otherwise. | ||
uint64: the peer ID of the connection, or 0 on error. |