I was looking at documentation for this unit called "Sockets" in Lazarus. It gave me 2 example units: server and client. Client compiled fine but Server did not. The reason: this line of code:

if not Accept(S, FromName, Sin, Sout) then
PError('Server : Accept : '+fromname) ;

(find the full example here: http://www.freepascal.org/docs-html/.../fpaccept.html its at the bottom)

From what I can understand, the Accept function is deprecated, which makes sense since it won't compile anyways because FromName is a string and it wants something else.

Could someone help me problem solve and replace this line of code with the non-deprecated one: fpAccept. I would be so greatful!