Name: Net-gera.7 Author: gera Time: 27 July 2006, 7:54:54 pm UUID: 4c3e2d46-2b94-41c1-aa10-372dcf06f869 Ancestors: Net-len.6
TCP>>connectTo:port: and TCP>>listenAt: now return a NetStream instead of an InternalTCPSocket.
(luciano's idea of course)
TCP isKindOf: Working, you can test it with:
"setup networking, you may need to chasnge the IP addres" Computer current networkingStack: (EthernetStack on: Computer current defaultNetworkInterface). Computer current networkingStack internetAddress: (InternetAddress fromString: '192.168.247.128'). Computer current networkingStack interface up.
"open an incoming socket" strm := Computer current networkingStack ip tcp listenAt: 1234
"go out and telnet to your SqueakNOS, type something" strm nextPutAll: 'hola SqueakNOS'; flush. strm nextAvailable
there's still a problem with ACKs, but a working version it's only some testing away :-)
squeaknos@lists.squeakfoundation.org