[net] Assorted cleanup
- Remove some old comments - Fix some doc comments - Improve some doc comments - Unify name of the errors related to UDP packet sizes (i.e: recv buffer too small, and message too big to send)
This commit is contained in:
4 files changed
+18
-31
No files matched your search
+1
-1
@@ -587,7 +587,7 @@ address_to_string :: proc(addr: Address, allocator := context.temp_allocator) ->
|
||||
}
|
||||
|
||||
// Returns a temporarily-allocated string representation of the endpoint.
|
||||
// If there's a port, uses the `[address]:port` format.
|
||||
// If there's a port, uses the `ip4address:port` or `[ip6address]:port` format, respectively.
|
||||
endpoint_to_string :: proc(ep: Endpoint, allocator := context.temp_allocator) -> string {
|
||||
if ep.port == 0 {
|
||||
return address_to_string(ep.address, allocator)
|
||||
|
||||
Reference in new issue
Block a user