Table of Contents
N: SIO Command OPEN ($44) ['D']
This is a command for Devices $71-$78 - The N: Device (see SIO-Commands-for-Device-IDs-$71-to-$78).
Description
Given a devicespec of the form:
Nx:hostname:port
It will set the UDP destination address and port to what's specified. The IOCB in question must be already opened to a UDP protocol. If the IOCB isn't already opened, an ERROR 146 will occur.
Both hostname and port are required. An IP address can be used in place of hostname. If port is not specified, an ERROR 165 will result.
Parameters
| DCB | Value |
|---|---|
| DDEVIC | $71 |
| DUNIT | $01 - $04 |
| DCOMND | $4F 'O' |
| DSTATS | $80 |
| DBUF | a 256 byte buffer containing N: devicespec |
| DTIMLO | $0F |
| DBYT | 256 |
| DAUX1 | N: AUX1 Values |
| DAUX2 | N: AUX2 Values |
Examples
Atari BASIC
REM Set UDP Destination (CMD 68 'D')
XIO 68,#1,0,0,"N:192.168.1.1:2000"
CC65
static unsigned char dest[256]="N:192.168.1.1:2000";
/**
* io_init() - Set-up the I/O
*/
void set_udp_dest(void)
{
OS.dcb.ddevic=0x71;
OS.dcb.dunit=1;
OS.dcb.dcomnd='D';
OS.dcb.dstats=0x80;
OS.dcb.dbuf=&dest;
OS.dcb.dtimlo=0x0f;
OS.dcb.dbyt=256;
OS.dcb.daux=0;
siov();
}
See Also
Put other related command links here.
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
- Atari FujiNet Quickstart Guide
- Virtual FujiNet Quickstart Guide
- ADAM FujiNet Quickstart Guide
- Apple II & III FujiNet Quickstart Guide
- Color Computer Quickstart Guide
- Commodore FujiNet Quickstart Guide
- S100 FujiNet Quickstart Guide
- Mac68k Quickstart Guide
- RS232 Quickstart Guide
- Atari 5200 Owner's Manual
- Arcadia 2001 Owner's Manual
- 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
- NES Programming
- Atari 7800 Programming
- RCA Studio II Programming
- Atari 5200 Programming
- Testing Plan
- Hacker List
- FujiNet VirtualMachine
Copyright 2026 Contributors to the FujiNetWIFI project.
Join us on Discord: https://discord.gg/7MfFTvD