- Extend plugin-tester to support multi-box plugins with v2 API - Add nyash_plugin_get_box_count/get_box_info/get_type_id functions - Create test multi-box plugin providing TestBoxA and TestBoxB - Update plugin-system.md documentation for v2 format - Add nyash.toml v2 specification for multi-box support - Successfully tested multi-box plugin lifecycle and type resolution This enables one plugin to provide multiple Box types, solving the dependency issue where HTTPServerBox needs SocketBox. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
22 lines
594 B
Plaintext
22 lines
594 B
Plaintext
// 🔌 SocketBox簡単テスト(TCP通信)
|
||
static box Main {
|
||
init { console }
|
||
|
||
main() {
|
||
me.console = new ConsoleBox()
|
||
me.console.log("🔌 TCP通信テスト...")
|
||
|
||
// シンプルなTCPクライアント
|
||
local socket = new SocketBox()
|
||
|
||
// Google DNSに接続してテスト
|
||
socket.connect("8.8.8.8", 53)
|
||
me.console.log("✅ 接続成功: 8.8.8.8:53")
|
||
|
||
// 切断
|
||
socket.close()
|
||
me.console.log("✅ 切断完了")
|
||
|
||
return "ソケットテスト完了"
|
||
}
|
||
} |