help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] Using Sockets


From: Aidan Gauland
Subject: [Help-smalltalk] Using Sockets
Date: Wed, 22 Dec 2010 23:49:41 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Hello,

Today I started trying to play around with networking in Smalltalk.  I
thought I knew what I was doing, but apparently not.  I have a basic
understanding of the concepts involved with networking and working
with sockets, but have no experience programming with sockets.

Here is my session...

st> PackageLoader fileInPackage: 'Sockets'.
"Global garbage collection... done"
"Scavenging... 91% reclaimed, done"
Loading package Sockets
"Scavenging... 69% reclaimed, done"
"Scavenging... 47% reclaimed, done"
"Scavenging... 36% reclaimed, done"
returned value is PackageLoader
5991 byte codes executed
which took 0.064 seconds (0.056s user+0.008s sys)
479 primitives, percent 8.00
self returns 70, inst var returns 89, literal returns 14
124 method cache lookups since last cleanup, percent 2.07
53 method cache hits, 71 misses, 42.74 percent hits
st> s := Sockets.Socket remote: 'localhost' port: 60890.
stdin:3: Aborted
(ip 44)SocketAddress class>>#extractAddressesAfterLookup:
(ip 6)[] in SocketAddress class>>#allByName:
(ip 4)<unwind> BlockClosure>>#ensure:
(ip 48)[] in SocketAddress class>>#allByName:
(ip 4)[] in SocketAddress class>>#at:cache:
(ip 10)Dictionary>>#at:ifAbsent:
(ip 18)SocketAddress class>>#at:cache:
(ip 24)SocketAddress class>>#allByName:
(ip 16)SocketAddress class>>#byName:
(ip 10)Socket class(StreamSocket class)>>#remote:port:local:port:
(ip 18)Socket class(StreamSocket class)>>#remote:port:
(ip 10)UndefinedObject>>#executeStatements
(ip 0)<bottom>

Process gst aborted

What am I doing wrong?

Thanks,
Aidan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]