socket programming in asp.net possible?

G

Guest

Hi all,

I am new to .net technologies.

ASP.NET supports socket programming like send/receive in c or c++?

I am developing web-site application in asp.net and code behind is Visual
C#. In page_load event, I am using atl com component. Here one for loop is
there. In this for loop, number of iterations are 1000, I can receive some
data using com component. It is just set of some characters like
"0123456tyu".
(This is related to IIS Server machine).

My requiremnet: I have to send this data to users machine and there I need
to create one text file then I want to write this received data into this
text file.
(This is related to users machine. I mean, web pages are accessed from this
machine)

Is there any way to receive data from iis server to users machine like
socket programming in c or c++?

How can I achieve this? What technologies I have to select from VS2005?

Any suggestions are welcome.

Thanks in advance.
 
O

OJ

Hi,
Type "c# Asynchronous socket" into google and all will be revealed.
Basically there are several Socket-based comms objects in DOT NET like
WebRequest, HTTPWebRequest and Socket...

HTH,
O
 
K

Kevin Spencer

While there are plenty of networking and socket-related classes in the .Net
framework, I don't think you want/need to go that route, depending on your
actual requirements (your message sounds like a description of a solution
rather than a description of a requirement, which is not specified).

First, to do socket communication, you have to have software at both ends of
the session that communicate over the socket connection. Second, you're
highly likely to have Firewall issues on the client machines, as the socket
would need to use some non-standard port. Third, you can send a text file to
the client machine via your web application, through the browser, if you
need to do so, and you can generate it on the fly if you want.

But without more information about your actual requirements, that's about as
much as I can tell you.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top