Using sockets in a formless application
Posted on 2007-10-09
I want to write a formless aplication, but I need to use Socket such as TCLientSocket and TServerSocket, but the problem is that I dont know how to manage events like OnClientCOnnect, OnAccept, OnGetSocket, OnListen, OnRead OnClientRead, OnConnect, OnDisconnect, etc When I use forms I can do this:
procedure TForm1.ServerSocket1ClientRead(Sender: TObject;
//All my code here
But How can I do the same without forms?