Re: [Jprogramming] Qt websockets and doevents

2014-02-22 Thread bill lam
s iOS.  Is jQT more likely to > ever be implemented on iOS than JHS? > > > - Original Message - > From: bill lam > To: programm...@jsoftware.com > Cc: > Sent: Saturday, February 22, 2014 3:05:18 AM > Subject: Re: [Jprogramming] Qt websockets and doevents > >

Re: [Jprogramming] Qt websockets and doevents

2014-02-22 Thread Pascal Jasmin
, 2014 3:05:18 AM Subject: Re: [Jprogramming] Qt websockets and doevents sendb now fixed. Timer and Qtwebsocket are part of jqt. If jqt is running, wd should be available. If jqt is not running, everything depending on jqt will not work.  You may try start jhs on a jqt session. (untested

Re: [Jprogramming] Qt websockets and doevents

2014-02-22 Thread bill lam
sendb now fixed. Timer and Qtwebsocket are part of jqt. If jqt is running, wd should be available. If jqt is not running, everything depending on jqt will not work. You may try start jhs on a jqt session. (untested) -- regards, GPG key 1024

Re: [Jprogramming] Qt websockets and doevents

2014-02-17 Thread Pascal Jasmin
|domain error: wd1 |   'r c p n'=.wd1,&.>y;2;0 - Original Message - From: bill lam To: programm...@jsoftware.com Cc: Sent: Monday, February 17, 2014 11:07:19 AM Subject: Re: [Jprogramming] Qt websockets and doevents I checked sendb (not QtWebsocket) is faul

Re: [Jprogramming] Qt websockets and doevents

2014-02-17 Thread bill lam
r. > > Also to partially answer my first question, google tells me, base128 is not > generally safe for transmitting over web, though base 85/91 exists, with 91 > being patent free. > > > > > > > ____________ > From: bill lam >

Re: [Jprogramming] Qt websockets and doevents

2014-02-17 Thread Pascal Jasmin
85/91 exists, with 91 being patent free. From: bill lam To: programm...@jsoftware.com Sent: Monday, February 17, 2014 1:04:52 AM Subject: Re: [Jprogramming] Qt websockets and doevents Also QtWebsocket may interpret and convert data as utf8 text but

Re: [Jprogramming] Qt websockets and doevents

2014-02-17 Thread Pascal Jasmin
g byte of 0 might terminate message) - Original Message - From: bill lam To: programm...@jsoftware.com Cc: Sent: Monday, February 17, 2014 1:04:52 AM Subject: Re: [Jprogramming] Qt websockets and doevents I'll take a look in the jwiki entry, I suspect you meant pD 'serv send&

Re: [Jprogramming] Qt websockets and doevents

2014-02-16 Thread bill lam
also care, use either send or sendb as > appropriated." > > but only 9 bytes are sent when send instead of sendb is used too. > > > - Original Message - > From: bill lam > To: programm...@jsoftware.com > Cc: > Sent: Friday, February 14, 2014 10:49:50

Re: [Jprogramming] Qt websockets and doevents

2014-02-16 Thread Pascal Jasmin
bytes are sent when send instead of sendb is used too. - Original Message - From: bill lam To: programm...@jsoftware.com Cc: Sent: Friday, February 14, 2014 10:49:50 PM Subject: Re: [Jprogramming] Qt websockets and doevents Sorry, the error message was terse. in fact it expected either

Re: [Jprogramming] Qt websockets and doevents

2014-02-14 Thread bill lam
Sorry, the error message was terse. in fact it expected either 1 ro 2 arguments for send. either "send socket" or "send socket data" try this wd 'ws send ', (": sk) , ' hello' or wd 'ws send ', (": sk) , ' "hello client, username:"' or wd 'ws send ', (": sk) , ' *hello client, username:' I

Re: [Jprogramming] Qt websockets and doevents

2014-02-14 Thread Pascal Jasmin
Another issue I've uncovered in single application client and server communication, also applies to separate applications. It appears that the server receives the connect (onOpen) event first (before client), but even though the server is connected, it is not safe for it to send yet. For insta

Re: [Jprogramming] Qt websockets and doevents

2014-02-13 Thread Joe Bogner
Pascal, I'm not clear on what the issue is or what you're trying to accomplish either. I'm happy to help if I understood the problem better. Your comment regarding 6!:3 does not surprise me. I assume that's causing the single thread to sleep so it's blocking the event handler. If you need synchro

Re: [Jprogramming] Qt websockets and doevents

2014-02-13 Thread Pascal Jasmin
t: Re: [Jprogramming] Qt websockets and doevents Here's a J implementation of code to fetch a web page from a web server. This is code lifted from the j602 lab "Sockets and the Internet". (Currently, the j602 labs are the most mature.) I removed the wd progress indicator code, renamed every

Re: [Jprogramming] Qt websockets and doevents

2014-02-13 Thread Raul Miller
failure. > > However, if the J console has a way of allowing for/deferring to the > processing of the handler events, perhaps there is a way to do it within J > code too? I thought 6!:3 might do that. As a guess, perhaps 6!:3 ] 0 > could be made to. > > > > > > > --

Re: [Jprogramming] Qt websockets and doevents

2014-02-13 Thread Pascal Jasmin
 As a guess, perhaps 6!:3 ] 0 could be made to. - Original Message - From: bill lam To: programm...@jsoftware.com Cc: Sent: Thursday, February 13, 2014 9:23:35 AM Subject: Re: [Jprogramming] Qt websockets and doevents connection of websocket involves some hand-shaking between

Re: [Jprogramming] Qt websockets and doevents

2014-02-13 Thread bill lam
t; >    wd 'ws send ' , s , ' f123' [ wscln_handler jws_onOpen , 0 ". pD s=. wd > 'ws connect ws://localhost 3000' > 77365216 > connected 77365216 > 4 > disconnected 77365216 > > > > - Original Message - > From: b

Re: [Jprogramming] Qt websockets and doevents

2014-02-13 Thread Pascal Jasmin
; [ wscln_handler jws_onOpen , 0 ". pD s=. wd 'ws connect ws://localhost 3000' 77365216 connected 77365216 4 disconnected 77365216 - Original Message ----- From: bill lam To: Programming forum Cc: Sent: Thursday, February 13, 2014 4:08:14 AM Subject: Re: [Jprogramming] Qt web

Re: [Jprogramming] Qt websockets and doevents

2014-02-13 Thread bill lam
00' > > wd 'ws send ' , s , ' f123' > > > work fine. (but they would fail in a script) > > > - Original Message - > From: Raul Miller > To: Programming forum > Cc: > Sent: Wednesday, February 12, 2014 10:43:23 PM > Subject: Re

Re: [Jprogramming] Qt websockets and doevents

2014-02-12 Thread Pascal Jasmin
" or listen on different ports. - Original Message - From: Raul Miller To: Programming forum Cc: Sent: Thursday, February 13, 2014 12:43:16 AM Subject: Re: [Jprogramming] Qt websockets and doevents I tried this, or I thought I did, but:   a: new_wsconnection_ 'localhost 3000

Re: [Jprogramming] Qt websockets and doevents

2014-02-12 Thread Raul Miller
port') > wsconnectionObj > new =: 4 : 0 NB. called for client connection > s =. 0 ". wd 'ws connect ws://', y > (s ; x) conew >18!:5 '' > ) > > NB. ===== > wd 'ws listen 3000' > c

Re: [Jprogramming] Qt websockets and doevents

2014-02-12 Thread Pascal Jasmin
k fine. (but they would fail in a script) - Original Message - From: Raul Miller To: Programming forum Cc: Sent: Wednesday, February 12, 2014 10:43:23 PM Subject: Re: [Jprogramming] Qt websockets and doevents Are you looking for http://www.jsoftware.com/jwiki/Scripts/WindowsTimer? Tha

Re: [Jprogramming] Qt websockets and doevents

2014-02-12 Thread bill lam
========= > wd 'ws listen 3000' > cocurrent 'base' > testws =: 3 : 0 > a: new_wsconnection_ 'localhost 3000' > a: new_wsconnection_ 'localhost 3000' > 6!:3 (0.2) > NB. 'close 1' inl  '''client&#

Re: [Jprogramming] Qt websockets and doevents

2014-02-12 Thread Raul Miller
) > wsconnectionObj > new =: 4 : 0 NB. called for client connection > s =. 0 ". wd 'ws connect ws://', y > (s ; x) conew >18!:5 '' > ) > > NB. ============= > wd 'ws listen 3000' > cocurrent 'b

Re: [Jprogramming] Qt websockets and doevents

2014-02-12 Thread Pascal Jasmin
3000' 6!:3 (0.2) NB. 'close 1' inl  '''client'' -: conntype' (] #~ inl) wsconnections_ws_ NB. closes all clients (cascades cleanup) NB.6!:3 (0.2) pD wsconnections_ws_ ; wssockets_ws_ pD  'q0';wd 'ws query 0' pD  'q1';wd

Re: [Jprogramming] Qt websockets and doevents

2014-02-12 Thread Raul Miller
chnique I don't know of, in maintaining my "own queue of > commands" > > > > > - Original Message ----- > From: Raul Miller > To: Programming forum > Cc: > Sent: Wednesday, February 12, 2014 7:52:43 PM > Subject: Re: [Jprogramming] Qt websockets and do

Re: [Jprogramming] Qt websockets and doevents

2014-02-12 Thread bill lam
; it, if I > did. Would probably cause its own problems. Its possible that you are > describing a technique I don't know of, in maintaining my "own queue of > commands" > > > > > - Original Message - > From: Raul Miller > To: Programming

Re: [Jprogramming] Qt websockets and doevents

2014-02-12 Thread Pascal Jasmin
nique I don't know of, in maintaining my "own queue of commands" - Original Message - From: Raul Miller To: Programming forum Cc: Sent: Wednesday, February 12, 2014 7:52:43 PM Subject: Re: [Jprogramming] Qt websockets and doevents I am a little uncomfortable, reading ad-hoc

Re: [Jprogramming] Qt websockets and doevents

2014-02-12 Thread Raul Miller
I am a little uncomfortable, reading ad-hoc code in the 'z' locale. Why not use some other locale? Also, I am not clear what you are asking for, with the event handler, but clearly you can call it yourself if you wish to do so (and you could maintain your own queue of commands to feed it, if you w

[Jprogramming] Qt websockets and doevents

2014-02-12 Thread Pascal Jasmin
A minor wierdness with websockets is that connect returns a string socket, whereas the event handlers have integer sockets. I was hoping that 6!:2 allowed for event handlers to process messages, but it doesn't appear to.  Does such a command exist?  A bit like the old vb windows 3.1 doevents()/