Stephen Heumann
3f40a3190d
Modify FPRead requests so they don’t return more data than will fit in the reply buffer.
...
This issue arises because ASP requests and replies are limited to a “quantum size” of 4624 bytes even if the amount requested is larger, and the AppleShare FST relies on this behavior in sizing its buffers. DSI does not have this limitation, so it was returning more data than would fit in the buffer.
Also improve error checking, so an error is reported in cases where the buffer is too small.
2017-04-03 16:36:50 -05:00
Stephen Heumann
17421e0ba5
Add support for calling asynchronous completion routines.
...
At this point it can connect and largely work, but there are still several issues.
2017-04-03 15:39:37 -05:00
Stephen Heumann
9720f37531
Initial code for installing our commands.
...
This code works to some extent, but tends to cause system hangs.
Also includes some DSI implementation fixes.
2017-04-01 15:32:32 -05:00
Stephen Heumann
ee83e402f8
Implement support for DSIWrite, plus a few other cleanups.
2017-03-23 02:31:06 -05:00
Stephen Heumann
275f3456ba
Add support for sending DSICommand requests.
2017-03-22 20:13:20 -05:00
Stephen Heumann
83c702fcbb
Include the FPGetSrvrInfo AFP-level request in DSIGetInfo packets.
...
The macOS AFP server gives a response even without this, but the protocol spec says it should be there.
2017-03-20 00:58:17 -05:00
Stephen Heumann
0b0a422c33
Updates to support opening and closing a session.
2017-03-19 17:23:42 -05:00
Stephen Heumann
b5c3a29f37
Initial version, with test program.
...
It can currently send a GetStatus request and get a response.
2017-03-18 19:42:25 -05:00