Hi Sam, You need to flush the output stream after writing the serialized data to it. Output is buffered which means that multiple writes are coalesced. Closing a stream flushes it but in this case you want to ensure that pending output is sent without closing it, so you must call flush manually after you finish writing data.
Slava On Mon, Aug 3, 2009 at 9:26 PM, Sam Anklesaria<[email protected]> wrote: > Hello. Perhaps someone might assist me: > > I don't understand how to use threaded servers. > The handler quot can read and write individually just fine, but can't seem to > do > them together. Say I want to add one and spit back the result: > > binary <threaded-server> > "addone" >>name > [ deserialize 1 + serialize ] >>handler > 1234 >>insecure [ start-server ] in-thread drop > > > and try to connect with: > > "localhost" 1234 <inet> binary [ 1 serialize deserialize ] with-client > > When the client attempts to deserialize, he reaches the end of the stream. > What I am doing wrong? > Thanks > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Factor-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/factor-talk > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
