RE: Sockets / Remoting / Web Service ?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Tian Min Huang (timhuang_at_online.microsoft.com)
Date: 05/07/04


Date: Fri, 07 May 2004 08:33:37 GMT

Hello Lucas,

Thanks for your post. There is no need to write a temp file in order to
transfer it via socket. To transfer a file, you still need to read it to
memory and then send it via socket. So, I suggest you to send a serialized
object directly.

I recommend you the following MSDN documentations on TCP and related
classes:

Using TCP Services
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconusingtcpservices.asp

TcpClient Class
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemNetSocketsTcpClientClassTopic.asp

TcpListener Class
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemNetSocketsTcpListenerClassTopic.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


Quantcast