--
You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com.
To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
So far, yes, that is the right way to create a connection. Here's the rest:
var conn = net.createConnection(port,host);
conn.on("connection", function (socket) {
socket.on("data", function (c) {
// data coming in. deal with it
socket.write("hello")
socket.end("send one last optional buffer and close the connection")
})
socket.on("end", function () {
// ITS OVER!
})
})
Try to write to "fics" when the "connect" event fires, maybe it will
work. If it doesn't, you probably have to look through the incoming
chunks until you get a login prompt, send your username, wait for the
password prompt and send the password.
Jann