r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!Uniserve] Creating Uniserve processes

Pekr
17-May-2005
[173]
what are those services, protocols?
Graham
17-May-2005
[174x3]
ummm... thinking hard ...
popd .. which is a pop server
and smtpd which is a smtp server ( receives mail only so far )
Pekr
17-May-2005
[177]
what about your sync protocol? Is that separate one, or part of Uniserve 
architecture?
Graham
17-May-2005
[178x3]
That's separate ...
It was a contracted job that is still not finished ...
Anyway, the smtp service is currently being used to process my mail, 
and it is being picked up by mail clients using the pop service
Pekr
17-May-2005
[181]
hmm, and how is your sync stuff going? Is it reliable already? :-)
Graham
17-May-2005
[182x3]
Well, it works for me .. but that is not adequate amount of testing!
What I want to see with Uniserve is to be able to encrypt binary 
data as it is sent
Your welcome to test the sync service ... if it works, you won't 
need to use IOS :)
Pekr
17-May-2005
[185]
you can encrypt streams yourself, no?
Graham
17-May-2005
[186]
yes .. and no
Pekr
17-May-2005
[187]
OK, I can test .... I will write also some proposal for new kind 
of app, I think some money can be earned that way :-)
Graham
17-May-2005
[188x7]
the uniserve client detects that a "packet" is sent by knowing how 
many bytes are coming ( as in http ), or in knowing at unique end 
sequence
as in "." + crlf
but when you stream a file that is encrypted, the file length is 
now changed
if you encrypt the whole file at the start, it defeats the point 
of streaming which is to save cpu
the replication server and client are at http://www.compkarori.com/coyote/
I have also a smtp protocol that I will use to send mail.  Why not 
use the existing smtp that comes with Rebol?  My one uses Vincent's 
dig to find the email's mail server, and sends it directly.
This bypasses all those problems that some people have with authenticated 
smtp servers.
MikeL
17-May-2005
[195]
From the documentation, "Uniserve's purpose is to offer a simple 
but powerful solution for programming client and servers applications 
that can be combined with View interfaces easily."


The uses for the Asynch that I can come up with are: 1. Backup after 
transactions. 2. Journalizing / reporting after a committed transaction 
update 3. Database access 4. Queuing of side-effect events that are 
not needed for the response in the user interface. 


Aside from that, my understanding is that an synch event could be 
made asynch to allow a lower end server to process the workload.

Does anyone have any other uses from the 4 noted?


Does anyone have a simple sample of tying Uniserve into the View 
interfaces?


Are there any results of driving some load using uniserve versus 
synchronous or other solutions like threaded models?




I am trying to get my head around this a bit more and want to rely 
less on the Doc-likes-it-some-it-must-be-the-right-thing-to-do approach 
that I have used before.


I read the Medusa documentation that Doc refers to but it did not 
lead me to any good application examples.
Graham
17-May-2005
[196]
My replication server/client is using View and Uniserve
MikeL
17-May-2005
[197]
Thanks Graham.  Your response came in while I was composing this.... 
OK I have a simple View interface displaying a uniserve response 
so I follow that.  With a view user interface I can see you could 
get the data needed for multiple tab pages asynchronously and have 
some saving there.   For a script serving out html pages, it could 
be broken up so that asynch go after independent parts but they would 
have to be all emitted to the browser at once.   Is anyone doing 
that with Uniserv or other?
Graham
17-May-2005
[198]
don't understand the scenario .. are u talking about writing a server 
or client application?
MikeL
17-May-2005
[199]
In that ramble, I had both - I have a View client app that I want 
to know how to access Uniservices to make the programming easy and 
I also want to know how to Uniserve if I want to run  a CGI that 
connects to a database, does some credit application calculations, 
and emits html to the client.   For this CGI script, I would get 
both performance improvements and an easier programming model ... 
if I am reading the doc correctly.
Graham
17-May-2005
[200x3]
Didier is using Uniserve on client side for his forum program - enables 
async downloading of new messages.  Look for ( I think ) lecture-forum.r
My webmail using Uniserve's http server (Cheyenne) does database 
connections to retrieve mail http://www.compkarori.co.nz:8001
I have a single odbc connection that is re-used by all the clients 
so that I do not have the overhead of opening/closing a database 
connection  for each transaction.
MikeL
18-May-2005
[203]
Thanks Graham. One like a background refresh of more recently posted 
messages would be a great example.   I looked at Didier's code for 
lecture-forum.   If it uses Uniserve in the version that I located, 
it is very subtle.  I'll ask him if he can illuminate it for me.
Graham
31-Aug-2005
[204]
Open/skip will be very helpful to allow file resume in Cheyenne.
Pekr
1-Sep-2005
[205]
you mean open/seek, no? :-)
Graham
1-Sep-2005
[206]
yeah ...
Terry
6-Oct-2005
[207x3]
Any simple examples on using "stop-at" with uniserve to pick up posted 
data??? Can only dig up "GET" ??
stop-at binary seems to work, but not stop-at string!
Ok, I got it.. seems you need to have the "stop-at" in both the on-new-client, 
AND on-received
Terry
7-Oct-2005
[210]
I have another question though.. with the httpd service, where is 
the actual data?  I get the headers, and i get the length of the 
data, but not the actual binary.. im submitting a form using POST... 
GET is fine.
Graham
7-Oct-2005
[211]
Does lfred know ?
Terry
7-Oct-2005
[212x2]
Not unless you taught him.
when i submit a basic form.. the only binary i receive is "POST / 
HTTP/1.1".. none of the other values?
Graham
7-Oct-2005
[214x4]
[thru "Content-length: " copy post-bytes to crlf | none]
so, it must be post-bytes :)
is the number of bytes posted.
and request I guess holds the post data itself.
Terry
7-Oct-2005
[218x3]
I think the problems was trying to toy with the URL, rather than 
processing with a .cgi script.
the httpd is trying to serve up a page, and i wouldn't let it.??
One can get all fancy playing with ports and protocols, but in the 
end, there's alot to be said for DBI
Terry
8-Oct-2005
[221]
(CGI rather :)
Graham
8-Oct-2005
[222]
Ahh.. your left hand was one row down and shifted to the right