Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / April 2007

Tip: Looking for answers? Try searching our database.

socket programming in asp.net possible?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John - 07 Apr 2007 08:10 GMT
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.

Signature

Thanks & Regards,
John.

OJ - 09 Apr 2007 12:09 GMT
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

> Hi all,
>
[quoted text clipped - 27 lines]
> Thanks & Regards,
> John.
Kevin Spencer - 09 Apr 2007 12:29 GMT
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.

Signature

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

> Hi all,
>
[quoted text clipped - 25 lines]
>
> Thanks in advance.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.