Examples for lNet are very poor
Really? They're very good to me. What makes you think so?
For questions below, drop TLTCPComponent to your form first.
1. Accept or reject connection (server)
Call Listen method to host an address, then handle OnAccept. You can check PeerAddress/PeerPort to determine whether to accept or reject, if you do nothing it will default to Accept() (because it's already accepted). Use Disconnect() to reject.
2. Send message to only one user (server and client)
TLTCPComponent can act as both server and client. First Connect() to target (in this case, we don't care whether it's client or server), then use Send() or SendMessage() to send the message.
3. Check, who sent message which we are receiving (server and client)
See answer for question no. 1
4. Secure application by intercept messages by unauthorized person
Same as above.