Socket>>connectTo:port: fail

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Socket>>connectTo:port: fail

SergeStinckwich
Hi all,
do some modifications occurs recently in the socket classes ?
Because when i'm trying to do :

| socket |
socket := Socket newTCP.
socket connectTo: #[127 0 0 1] port:6665.

I have a DNU now : ByteArray>>doesNotUnderstand:#port:
I'm using the last Pharo.
Thank you,
--
Serge Stinckwich
UMI UMMISCO 209 (IRD/UPMC), Hanoi, Vietnam
Smalltalkers do: [:it | All with: Class, (And love: it)]
http://doesnotunderstand.org/

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Socket>>connectTo:port: fail

hernanmd
Hi Serge,
  This works for me:

| socket1 socket2 |

socket1 := Socket newTCP.
socket2 := Socket newTCP.
socket1 listenOn: 6665.
address := NetNameResolver addressForName: '127.0.0.1' timeout: 20.
socket2 connectTo: address port:6665.

Regards

Hernán

2009/8/13 Serge Stinckwich <[hidden email]>:

> Hi all,
> do some modifications occurs recently in the socket classes ?
> Because when i'm trying to do :
>
> | socket |
> socket := Socket newTCP.
> socket connectTo: #[127 0 0 1] port:6665.
>
> I have a DNU now : ByteArray>>doesNotUnderstand:#port:
> I'm using the last Pharo.
> Thank you,
> --
> Serge Stinckwich
> UMI UMMISCO 209 (IRD/UPMC), Hanoi, Vietnam
> Smalltalkers do: [:it | All with: Class, (And love: it)]
> http://doesnotunderstand.org/
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Socket>>connectTo:port: fail

SergeStinckwich
On Thu, Aug 13, 2009 at 11:40 AM, Hernán Morales
Durand<[hidden email]> wrote:

> Hi Serge,
>  This works for me:
>
> | socket1 socket2 |
>
> socket1 := Socket newTCP.
> socket2 := Socket newTCP.
> socket1 listenOn: 6665.
> address := NetNameResolver addressForName: '127.0.0.1' timeout: 20.
> socket2 connectTo: address port:6665.

Ok works better now ;-)
Thank you Hernán.
--
Serge Stinckwich
UMI UMMISCO 209 (IRD/UPMC), Hanoi, Vietnam
Smalltalkers do: [:it | All with: Class, (And love: it)]
http://doesnotunderstand.org/

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project