[pstreams-devel] pstreams kudos!
Brought to you by:
redi
From: stephan b. <st...@s1...> - 2005-12-23 02:27:07
|
Hi, developer(s)! i just came across pstreams while looking for the zipios++ lib and i'm=20 very impressed with what you've done. i am going to attempt to create=20 an addon for libs11n (http://s11n.net) which uses your streams to=20 de/serialize data over arbitrary commands, like ssh. That will allow us=20 to save/load our C++ objects to/from remote servers from arbitrary=20 s11n-using applications. :) :) :) Abstractly, that's something like this: =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0opstream out("ssh me@host '= cat > destination'"); =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0s11nlite::save( mySerializa= bleObject, out ); Likewise, for input: =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0ipstream inp( "ssh me@host = 'cat < sourcefile'"); MyT * t =3D s11nlite::load_serializable<MyT>( inp ); The great part is, the stream-level dispatching is done away from=20 client-side code, so any s11nlite users can take advantage of it=20 without changing their code. Oh, the possibilities! Many thanks for your code!!! :):) =2D-=20 =2D---- st...@s1... http://s11n.net "Pleasure is a grace... not obedient to the commands of the will." -- Alan W. Watts. |