Connecting a socket to a server.
François THIMON
thimof at iutc3.unicaen.fr
Thu May 26 11:18:25 UTC 2005
Quoting Lex Spoon <lex at cc.gatech.edu>:
> =?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
>
>
Hi,
actually I've fixed my problem two days ago by checking as much code as I could.
But still thanks for your help.
Cheers.
More information about the Squeak-dev
mailing list
|