Problems using TServer/TClinet Components in non visual applications

Hi Everybody ,

i've got a little problem. I want to write a non visual application using
TClientSocket and TServerSocket. My Problem now is that I have some code in
the OnConnect-Event on Client-side , but in an non-visual application
(console) it does not work. he does not go in the OnConnectevent....I think
this Problem is also an Server-side ! Please can somebody help me.....?