Hi,
What is the difference between Socket and OldSocket classes in Squeak? What class I should use to for Stream communication? I have found no test classes on the basic operations on sockets as open a socket, open an input output streams on socket, accept a connection, close the socket, etc... is it normal?
Thanks, Houssam
--------------------------------- Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.Téléchargez la version beta.
Hi!
Houssam FAKIH h_fakih@yahoo.com wrote:
Hi,
What is the difference between Socket and OldSocket classes in Squeak? What class I should use to for Stream communication? I have found no test classes on the basic operations on sockets as open a socket, open an input output streams on socket, accept a connection, close the socket, etc... is it normal?
My advice is to not use Socket directly - you most likely want to use SocketStream instead. In 3.9 the SocketStream implementation is new - and for older Squeaks you can load the new implementation as the package called FastSocketStream available on SqueakMap.
The only reason AFAIK for OldSocket still hanging around is the fact that HttpSocket still uses it, but hopefully we will get it moved over to Socket soon and then it will be removed.
regards, Göran
goran@krampe.se puso en su mail :
My advice is to not use Socket directly - you most likely want to use SocketStream instead. In 3.9 the SocketStream implementation is new - and for older Squeaks you can load the new implementation as the package called FastSocketStream available on SqueakMap.
The only reason AFAIK for OldSocket still hanging around is the fact that HttpSocket still uses it, but hopefully we will get it moved over to Socket soon and then it will be removed.
regards, Göran
Göran:
An example of how you serialize and send one arbitrary complex object between two machines is too much to ask ?
I copy rsT sendObject method for doing this (and have to copy six methods from OldSocket to all my images).
I know what is not the best way ...
So, a micro how to tutorial in 3.9 ? Your Christmas gift?.
Cheers.
Edgar
___________________________________________________________ 1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo http://correo.yahoo.com.ar
Brent Pinkney brent.pinkney@aircom.co.za wrote:
An example of how you serialize and send one arbitrary complex object between two machines is too much to ask ?
See the Magma client server package on the wiki and SqueakSource.
Brent
And another way of putting it is:
Serialization and RPC frameworks are layers on top of Socket/SocketStream which means that these things should not be in the Socket class or SocketStream class. There are tons of such frameworks on SM.
But of course, we could add something to the class comments pointing the developer in the right direction.
regards, Göran
Brent Pinkney puso en su mail :
See the Magma client server package on the wiki and SqueakSource.
Brent
Ok, I take a look here, thanks for the tip
___________________________________________________________ 1GB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo http://correo.yahoo.com.ar
Use Socket.
In 3.9a, tests from OldSocket have been/will be moved to Socket, and most likely OldSocket will be removed.
Regards,
Cees
On 12/21/05, Houssam FAKIH h_fakih@yahoo.com wrote:
Hi,
What is the difference between Socket and OldSocket classes in Squeak? What class I should use to for Stream communication? I have found no test classes on the basic operations on sockets as open a socket, open an input output streams on socket, accept a connection, close the socket, etc... is it normal?
Thanks, Houssam
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez la version beta.
Yes in fact you get FastSocketStream under Socket in 39a :)
Stef
On 21 déc. 05, at 11:17, Cees De Groot wrote:
Use Socket.
In 3.9a, tests from OldSocket have been/will be moved to Socket, and most likely OldSocket will be removed.
Regards,
Cees
On 12/21/05, Houssam FAKIH h_fakih@yahoo.com wrote:
Hi,
What is the difference between Socket and OldSocket classes in Squeak? What class I should use to for Stream communication? I have found no test classes on the basic operations on sockets as open a socket, open an input output streams on socket, accept a connection, close the socket, etc... is it normal?
Thanks, Houssam
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez la version beta.
squeak-dev@lists.squeakfoundation.org