For Programmers: Free Programming Magazines  


Home > Archive > Visual Studio > February 2006 > Returning data via sockets









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Returning data via sockets
SH

2006-02-27, 7:06 pm

From the little reading I've done about sockets, it seems that the only
data that I can return to the calling program is a packet of data - just
a simple data stream (consisting of header and data components) which
the calling program must laboriously unpack and interpret. Is there a
way to return a more complex data structure - an array, a dataset, a
data structure, etc. without having to do the work of unpacking it.

The model I'm thinking of is similar to a web service - a web service
can return a dataset, etc. and the calling program expects a dataset and
receives it as a dataset. No need to "unpack" it.

I've already implemented a procedure as a web service, but the
throughput is way too slow, so I'm thinking of doing one via a socket.
Will a socket be faster than a web service?

Thanks.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com