Table of Contents
Description
Closes the client socket associated with the given IOCB; flushes TX buffer; discards RX buffer.
Important
This does not close the associated listening socket for an IOCB. You must use the SPECIAL - UNLISTEN command to close a server socket that has been previously opened.
Parameters
- The IOCB of the channel to close
Returns
Examples
BASIC
For a client connection, assuming that IOCB #1 has been opened with:
OPEN #1,12,0,"N:TCP:192.168.1.8:2000"
Then you can close with:
CLOSE #1
For a server connection, assuming that IOCB #1 has been opened with:
OPEN #1,12,1,"N:TCP:2000"
Then you can close with
CLOSE #1:REM CLOSE CLIENT SOCKET
XIO 20,#1,0,0,"N:"
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
- Home
- What is FujiNet?
- The Definition of Done
- Board bring up for FujiNet Platform.IO code
- The Complete Linux CLI Guide
- The Complete macOS CLI Guide
- Development Env for Apps
- FujiNet-Development-Guidelines
- System Quickstarts
- FujiNet Flasher
- Setting up a TNFS Server
- FujiNet Configuration File: fnconfig.ini
- AppKey Registry - AppKey-Registry-Page
- CP-M Support
- BBS
- Official Hardware Versions
- Prototype Board Revisions
- FujiNet Development Guidelines
- The Network Protocol Handbook
- Atari Programming
- Apple Programming
- C64 Programming
- ADAM Programming
- Intellivision Programming
- Testing Plan
- Hacker List
- FujiNet VirtualMachine
Copyright 2026 Contributors to the FujiNetWIFI project.
Join us on Discord: https://discord.gg/7MfFTvD