Porting Fujinet code to SURL serial protocol

How to port a Apple II Fujinet program to a different proxy system, surl-server.