Skip to main content
Home Forums 68kMLA Help with TCPExample in Pascal — #6
Post #6 by mactjaap
Source Forum68kMLA
CategoryDevelopment
Post DateSat, 19 Oct 2013 - 22:42
Original URLhttps://68kmla.org/bb/threads/help-with-tcpexample-in-pascal.29110/
Post
Ok... I tried this as NewPassiveConnection:

Code:
oe := NewPassiveConnection(cp, Default_TCPBUFFERSIZE, localport);
these are my const

Code:
 const
 user_name = 'get /';
 dest_name = '192.168.62.9';
 dest_port = 84;
 localport = 84;
 nul = chr(0);
 lf = chr(10);
 cr = chr(13);
Doesn't work. I get a complaint about: Too few parameters are used in procedure or function call

I found what could be in NewPassiveConnection

Code:
function NewPassiveConnection (var cp: connectionIndex; buffersize: longInt; localport: integer; remotehost: longInt; remoteport: integer; dataptr: univ ptr): OSErr;
How to construct a correct one?

mp.ls