Add ps2client: a CC0 Go client for ps2link #1
Loading…
Reference in a new issue
No description provided.
Delete branch "ps2client-go"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A Go client for ps2link, released under CC0, as
cmd/ps2client.iopexcepis left out.-h,-tand$PS2HOSTNAMEbehave as in the C tool.host:file requests (open, read, write, lseek, directories, stat, remove, mkdir) from a directory, with the root confined against..and symlinks and an optional read-only mode.ps2client fsexists but is not implemented yet.cmd/ps2client/CLEANROOM.md; the protocol is incmd/ps2client/docs/protocol.md.Tested against real ps2link v1.9.x in PCSX2:
-tags e2e) resets ps2link and checks the file device (byte-exact 300 KiB read and 100 KiB write, stat, directories, lseek), a memory write/dump round trip, and all register dump sizes. All pass. Seecmd/ps2client/docs/testing.mdfor the emulator setup (it needs a TAP adapter and a modified ps2link).execiop(arguments and module fetch),gsexec,scrdump,netdump,startvuandstopvuwere confirmed by hand against ps2link's log.Found while testing:
fioRemovefollows a successful remove with a mkdir of the same name (documented as broken in the SDK).dumpreg fifoaborts PCSX2 (emulator assertion); it is skipped in the emulator run.tty0:(the e2e suite asserts it). A plainprintfnever reaches udptty in the emulator because PCSX2 handles writes to stdout itself; that path needs a real PS2 (examples/consoletestand a hardware guide are included).ps2ip-nmwas built from the wrong source and could never send anything; fixed separately in ps2/sdk-core.Not tested on hardware. Tracked as PS2-18 (phases PS2-19 to PS2-26).
90e7c0d93bc71c110544c71c110544fac2fe4488