Socket connect fails -Scamper works

Frank Gerlach frankgerlach22 at gmx.de
Sat Dec 25 02:35:23 UTC 2004


Found the problem: One has to supply the addr as the NetNameResolver
supplies it. Still, the diagnostics could be much better...
The following snippet succesfully sends a string to my server.

|socket addr|
addr:=NetNameResolver addressForName:'localhost'.
socket:=(Socket newTCP) connectTo:addr port:1444.
socket sendData:'Hallole'.

-- 
+++ Sparen Sie mit GMX DSL +++ http://www.gmx.net/de/go/dsl
AKTION für Wechsler: DSL-Tarife ab 3,99 EUR/Monat + Startguthaben



More information about the Squeak-dev mailing list