Connecting a socket to a server.
Lex Spoon
lex at cc.gatech.edu
Wed May 25 23:57:40 UTC 2005
=?iso-8859-1?b?RnJhbudvaXM=?= THIMON <thimof at iutc3.unicaen.fr> wrote:
> Socket newTCP connectTo:'127.0.0.1' port:1024
> Socket createIfFail:[...] connectTo:'localhost' port:1024
> Socket createIfFail:[...] connectTo:'127.0.0.1' port:1024
Those functions require a ByteArray containing the 4 bytes of the IP
address (though it might be nice if they *did* accept the options you
give.... am I missing something?).
You should check out the "example" methods in class OldSocket. It is a
pity those methods are in OldSocket instead of Socket, but no one has
gotten around to making a changeset to fix it.
-Lex
More information about the Squeak-dev
mailing list
|