Re: A message for data waiting at a socket?

2004-01-03 Thread [EMAIL PROTECTED]
when your client connects to the server, have the server reconnect back to the client and let your client act as a server (if that makes sense ;- ) what dar was mentioning would work very similiar to what you want to do (at least as i understand it).. - write your data (blocking or

Re: A message for data waiting at a socket?

2004-01-03 Thread Dar Scott
On Friday, January 2, 2004, at 11:02 PM, Doug Lerner wrote: Are you part of the Revolution team, Dar? No. (That would be an honor.) But I am a TCP/IP and serial advocate among users. Anyway, most of the people who will use this will be OS X and WIndows users, though there might be some Linux

Re: A message for data waiting at a socket?

2004-01-03 Thread Dar Scott
On Saturday, January 3, 2004, at 07:27 AM, Doug Lerner wrote: Never mind my last message - I did get it to push according to your suggestion. But I don't see how that would go into high-CPU consumption. I usually don't use until lineEnd, though I have no argument against it. Maybe that changes

Re: A message for data waiting at a socket?

2004-01-03 Thread Doug Lerner
On 1/4/04 1:53 AM, Dar Scott [EMAIL PROTECTED] wrote: On Saturday, January 3, 2004, at 07:27 AM, Doug Lerner wrote: Never mind my last message - I did get it to push according to your suggestion. But I don't see how that would go into high-CPU consumption. It didn't. It worked fine.

Re: A message for data waiting at a socket?

2004-01-02 Thread Dar Scott
On Friday, January 2, 2004, at 07:43 PM, Doug Lerner wrote: I am currently polling an open socket to check for data, or checking for data immediately after writing to the socket (to check for replies to messages I send). But is there a message-driven way of doing this? Like if data is waiting

Re: A message for data waiting at a socket?

2004-01-02 Thread Doug Lerner
On 1/3/04 12:14 PM, Dar Scott [EMAIL PROTECTED] wrote: On Friday, January 2, 2004, at 07:43 PM, Doug Lerner wrote: I am currently polling an open socket to check for data, or checking for data immediately after writing to the socket (to check for replies to messages I send). But is

Re: A message for data waiting at a socket?

2004-01-02 Thread Dar Scott
On Friday, January 2, 2004, at 08:40 PM, Doug Lerner wrote: Wouldn't that just signal a message when reading data from the socket is complete? Yes, but this one is complete when the buffer is non empty: read from socket theSocket with message socketData Does that sound like what you want?

Re: A message for data waiting at a socket?

2004-01-02 Thread Doug Lerner
On 1/3/04 1:05 PM, Dar Scott [EMAIL PROTECTED] wrote: On Friday, January 2, 2004, at 08:40 PM, Doug Lerner wrote: Wouldn't that just signal a message when reading data from the socket is complete? Yes, but this one is complete when the buffer is non empty: read from socket

Re: A message for data waiting at a socket?

2004-01-02 Thread Dar Scott
On Friday, January 2, 2004, at 10:00 PM, Doug Lerner wrote: Neither one seems to have anything to do with the push of data from the other side, does it? I mean, in both cases you still have to invoke the read from socket command again somehow, like I am already doing, wouldn't you? Do the next

Re: A message for data waiting at a socket?

2004-01-02 Thread Doug Lerner
On 1/3/04 2:26 PM, Dar Scott [EMAIL PROTECTED] wrote: On Friday, January 2, 2004, at 10:00 PM, Doug Lerner wrote: Neither one seems to have anything to do with the push of data from the other side, does it? I mean, in both cases you still have to invoke the read from socket command again

Re: A message for data waiting at a socket?

2004-01-02 Thread Dar Scott
On Friday, January 2, 2004, at 10:34 PM, Doug Lerner wrote: But... what happens if no data is present? Wouldn't it cause a cpu-intensive-slowing-down loop like: read nothing's there so finished so signal read ? No. Isn't that cool? How would you know that? For me I wanted it so bad, when I

Re: A message for data waiting at a socket?

2004-01-02 Thread Doug Lerner
On 1/3/04 2:40 PM, Dar Scott [EMAIL PROTECTED] wrote: On Friday, January 2, 2004, at 10:34 PM, Doug Lerner wrote: But... what happens if no data is present? Wouldn't it cause a cpu-intensive-slowing-down loop like: read nothing's there so finished so signal read ? No. Why not?

RE: A message for data waiting at a socket?

2004-01-02 Thread Phil Davis
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Doug Lerner Sent: Friday, January 02, 2004 7:41 PM To: How to use Revolution Subject: Re: A message for data waiting at a socket? --- snip --- What would be nicer though is if data were pushed from the

Re: A message for data waiting at a socket?

2004-01-02 Thread Dar Scott
On Friday, January 2, 2004, at 10:45 PM, Doug Lerner wrote: Uh, what OS are you using? I am developing using Mac OS X, but this must end up being a cross-platform client. Why? I've been using Windows (2K class), OS X and some Mac OS. I think this all works on all of those. I keep worrying

Re: A message for data waiting at a socket?

2004-01-02 Thread Doug Lerner
On 1/3/04 2:49 PM, Phil Davis [EMAIL PROTECTED] wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Doug Lerner Sent: Friday, January 02, 2004 7:41 PM To: How to use Revolution Subject: Re: A message for data waiting at a socket? --- snip ---

Re: A message for data waiting at a socket?

2004-01-02 Thread Doug Lerner
On 1/3/04 2:54 PM, Dar Scott [EMAIL PROTECTED] wrote: On Friday, January 2, 2004, at 10:45 PM, Doug Lerner wrote: Uh, what OS are you using? I am developing using Mac OS X, but this must end up being a cross-platform client. Why? I've been using Windows (2K class), OS X and some