don't work !

4 views
Skip to first unread message

FoxZ

unread,
Sep 25, 2008, 7:43:40 AM9/25/08
to wxJavaScript
//new Module("../modules/wxJS_io.dll").load();

var ip = new wxIPV4address();
ip.hostname="192.168.0.11"; // my own pop3 server
ip.service = 110;

var buffer = new wxMemoryBuffer(1024);

var client = new wxSocketClient();
client.connect(ip, true);

v=client.read(buffer);
print (client.lastCount,"\n");
for (var n=0;n<client.lastCount;n++) print (n,") ",buffer[n],"\n");

output :

10
0) undefined
1) undefined
2) undefined
3) undefined
4) undefined
5) undefined
6) undefined
7) undefined
8) undefined
9) undefined


with "telnet 192.168.0.11 110" I get "+ok pop3"

I think buffer doesn't feed by calling client.read(buffer)

@++

Franky Braem

unread,
Sep 25, 2008, 8:49:18 AM9/25/08
to wxjava...@googlegroups.com
FoxZ schreef:
Can you try the toString method on the buffer to see if anything is in
there?

Franky.

FoxZ

unread,
Sep 25, 2008, 12:59:41 PM9/25/08
to wxJavaScript
> Can you try the toString method on the buffer to see if anything is in
> there?
buffer.tostring() nothing in...

buffer.datalen or buffer.datalength ?
doc say datalen but in exemple I found datalength....

your exemple dont work too...

@++
Reply all
Reply to author
Forward
0 new messages