[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TCP (or UDP) daytime client in Smalltalk

From: address@hidden
Subject: Re: TCP (or UDP) daytime client in Smalltalk
Date: Thu, 4 Jun 2020 17:36:48 +0200 (CEST)

The docs have an incorrect reference:

if you click on " Network programming with Sockets " that link is broken.

I've tried the following:

Eval [

PackageLoader fileInPackage: 'Sockets'.
PackageLoader fileInPackage: 'NetClients'.

s _ Socket remote:(SocketAddress createLoopbackHost) port:13.
(s upTo: Character cr) printNl.
s close.


This fails:

Object: nil error: did not understand #createLoopbackHost
MessageNotUnderstood(Exception)>>signal (
UndefinedObject(Object)>>doesNotUnderstand: #createLoopbackHost 
UndefinedObject>>executeStatements (

Apparently it does not know about the SocketAdress class (subclass of
IPAddress).  There must be some other way apparently to load that class.

Shouldn't loading the packages be sufficient to get the SocketAdress class ?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]