On Fri, Dec 24, 2010 at 10:24, Aidan Gauland <[email protected]> wrote:
> Aidan Gauland <aidalgol <at> no8wireless.co.nz> writes:
>> gnu-smalltalk-el from sid did not load properly, so I chose to build
>> GST 3.2.3.  My socket code no longer crashes gst.  Thank you very
>> much!
>
> Claimed victory too soon.  It doesn't crash, but I have no idea what
> I'm doing.  I think I once figured out how to create send a string
> over a TCP connection in Squeak, but I hadn't a clue what I was doing.
> I was just hacking Smalltalk in highschool when I was bored.  I've
> done a little with sockets in C, but only going through tutorials.
>
> Could someone please give me an example of using Sockets in Smalltalk
> for client-side stuff (or better yet, put it on the wiki)?  There are
> a few decent *server* examples on the wiki, but no Smalltalk client as
> counterparts for them.

Sockets are just streams, you use them with normal
#nextPutAll:/#nextLine/#next:/#flush methods.

For simple examples of clients you can look at the SMTP classes in
packages/net/SMTP.st.  I'll prepare some examples in the next few
days.

Paolo

_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to