Capy-Bearer Documentation

socket_close

lib call

Capy

function socket_close(handle : u64)

Description

Use socket_close after socket work. Do not use the handle after this call.

Example

Capy

var handle := socket_connect("127.0.0.1", 11211)
if handle != 0 { socket_close(handle) }

Output

No output