Capy-Bearer Documentation

socket_close

host 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", 1)
if handle != 0 { socket_close(handle) }