Connecting a socket to a server.

Lex Spoon lex at
Wed May 25 23:57:40 UTC 2005

=?iso-8859-1?b?RnJhbudvaXM=?= THIMON <thimof at> wrote:
>   Socket newTCP connectTo:'' port:1024
>   Socket createIfFail:[...] connectTo:'localhost' port:1024
>   Socket createIfFail:[...] connectTo:'' 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.


More information about the Squeak-dev mailing list