Guidance on use of Socket

John Thornborrow john at pinesoft.co.uk
Fri Dec 28 16:07:03 UTC 2007


Hello list,

I'm trying to create a simple listening service on localhost port 3456,
I assumed this would wait for 30 seconds, then proceed but it singals
ConnectionClosed error at the #waitForDataFor: message:

| sock |
sock := Socket new.
sock listOn: 3456.
sock waitForDataFor: 30.

Could somebody please advise?

Many thanks.

John.


Pinesoft Computers are registered in England, Registered number: 2914825. Registered office: 266-268 High Street, Waltham Cross, Herts, EN8 7EA



This message has been scanned for viruses by BlackSpider MailControl - www.blackspider.com




More information about the Squeak-dev mailing list