The connection with the server remains open until closed by the subroutine:
void bnet_close(BSOCK *sock)