Skip to main content
Home Forums 68kMLA Help with TCPExample in Pascal — #4
Post #4 by bbraun
Source Forum68kMLA
CategoryDevelopment
Post DateSat, 19 Oct 2013 - 04:00
Original URLhttps://68kmla.org/bb/threads/help-with-tcpexample-in-pascal.29110/
Post
I'm not very familiar with this MacTCP wrapper library you're using, but it looks like the way you create a listening socket instead of connecting to another machine is with NewPassiveConnection, and then the C_Established event will be when a client connects.

For the file access, you might look at using FSpOpenDF to open the file's data fork, FSRead to read the data, then FSClose.

mp.ls