-
Notifications
You must be signed in to change notification settings - Fork 74
N: SIO Command 'C' Close
europlus edited this page Sep 20, 2024
·
7 revisions
This is a command for Devices $71-$78 - The N: Device (see SIO-Commands-for-Device-IDs-$71-to-$78).
Close the N: device pointed to by DUNIT. This immediately closes the protocol instance on the ESP, which does any housekeeping required, such as closing connections and deallocating buffers.
Warning
This does not automatically flush any pending write buffers. You must do that yourself, at this level.
- Device 09 to 0C
- Use AdamNET Write (EOS WRITE CHARACTER DEVICE)
Offset | Value |
---|---|
0 | 'C' |
DCB | Value |
---|---|
DDEVIC | $71 |
DUNIT | $01 - $04 |
DCOMND | $43 'C' |
DSTATS | $00 |
DBUF | NULL |
DTIMLO | $0F |
DBYT | 0 |
DAUX1 | 0 |
DAUX2 | 0 |
/**
* io_done() - Called to close I/O
*/
void io_done(void)
{
OS.dcb.ddevic=0x71;
OS.dcb.dunit=1;
OS.dcb.dcomnd='C';
OS.dcb.dstats=0x00;
OS.dcb.dbuf=0;
OS.dcb.dbyt=0;
OS.dcb.daux=0;
siov();
}
#define NET_DEV 0x09
void close()
{
/* Close currently open network connection */
eos_write_character_device(NET_DEV,"C",1);
}
Put other related command links here.
Copyright 2024 Contributors to the FujiNetWIFI project.
Join us on Discord: https://discord.gg/7MfFTvD
- 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 - SIO Command $DC Open App Key
- CP-M Support
- BBS
- Official Hardware Versions
- Prototype Board Revisions
- FujiNet Development Guidelines
- Atari Programming
- Apple Programming
- C64 Programming
- ADAM Programming
- Testing Plan
- Hacker List
- FujiNet VirtualMachine