473,385 Members | 1,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Socket connection in a web app?

I am a .Net newbie. I have Visual Studio.Net 2003 and have the luxury
of being able to do some R&D/learning in a non-production environment.

I want to develop a web application that will get the data that it
serves out from two sources: (1) a database (probably MS Access but
could be SQL Server) and (2) directly from another application running
on the same machine. (BTW, this is on an intranet - the server will be
dedicated to these apps only).

I would like to have the web app and the "other" app talk to one
another using a socket connection. (The "other" app will be written in
VB6 and I'm very familiar with Winsocket communications from that
side).

I understand that there is a socket class available in .Net but that's
the limit of my knowledge. Can I use this to communicate with my
"other" app? Are there some code examples available anywhere that
would show the use of the socket class in a web app that I could
adapt/ learn from?

Thanks for any guidance.

Martin
Nov 20 '05 #1
3 1613
Hi Martin,

Did you already looked in the VB.net resource kit.
I thought that I had seen some samples which answers to your questions.

VB.net Resource kit
http://msdn.microsoft.com/vbasic/vbrkit/default.aspx

And if you have problems installing the resource kit
http://msdn.microsoft.com/vbasic/vbr...q/#installvdir

And as advice, do not forget to look at webservice what maybe can give as
well a solution for you.

http://msdn.microsoft.com/library/de...alkthrough.asp

I hope this helps?

Cor
I am a .Net newbie. I have Visual Studio.Net 2003 and have the luxury
of being able to do some R&D/learning in a non-production environment.

I want to develop a web application that will get the data that it
serves out from two sources: (1) a database (probably MS Access but
could be SQL Server) and (2) directly from another application running
on the same machine. (BTW, this is on an intranet - the server will be
dedicated to these apps only).

I would like to have the web app and the "other" app talk to one
another using a socket connection. (The "other" app will be written in
VB6 and I'm very familiar with Winsocket communications from that
side).

I understand that there is a socket class available in .Net but that's
the limit of my knowledge. Can I use this to communicate with my
"other" app? Are there some code examples available anywhere that
would show the use of the socket class in a web app that I could
adapt/ learn from?

Thanks for any guidance.

Martin

Nov 20 '05 #2
Yes, I have the resource kit installed. What I found in there
regarding sockets was for a Windows App. I'm assuming that using a
socket in a Web App would be different, no?
On Wed, 16 Jun 2004 17:43:34 +0200, "Cor Ligthert"
<no**********@planet.nl> wrote:
Hi Martin,

Did you already looked in the VB.net resource kit.
I thought that I had seen some samples which answers to your questions.

VB.net Resource kit
http://msdn.microsoft.com/vbasic/vbrkit/default.aspx

And if you have problems installing the resource kit
http://msdn.microsoft.com/vbasic/vbr...q/#installvdir

And as advice, do not forget to look at webservice what maybe can give as
well a solution for you.

http://msdn.microsoft.com/library/de...alkthrough.asp

I hope this helps?

Cor
I am a .Net newbie. I have Visual Studio.Net 2003 and have the luxury
of being able to do some R&D/learning in a non-production environment.

I want to develop a web application that will get the data that it
serves out from two sources: (1) a database (probably MS Access but
could be SQL Server) and (2) directly from another application running
on the same machine. (BTW, this is on an intranet - the server will be
dedicated to these apps only).

I would like to have the web app and the "other" app talk to one
another using a socket connection. (The "other" app will be written in
VB6 and I'm very familiar with Winsocket communications from that
side).

I understand that there is a socket class available in .Net but that's
the limit of my knowledge. Can I use this to communicate with my
"other" app? Are there some code examples available anywhere that
would show the use of the socket class in a web app that I could
adapt/ learn from?

Thanks for any guidance.

Martin


Nov 20 '05 #3
Hi Martin,

After this message I get maybe a better idea what you are after.
Having a connection to a userkind browser and a windows application can be
difficult, however not when you implement of course your own webbrowser,
than there are again other possibilities.

I give you two links, one is to the webbroswer the other to all ristrictions
that will be made to prevent that IE talks with a workstation. (There is
also a kind of interop possible with IE, and than you have to use shdocvw
instead of axshdocvw and because this is not a real net control probably as
well using VB6, which I do not know).

webbrowser
http://support.microsoft.com/?kbid=311303

some faqs
http://support.microsoft.com/default...b;EN-US;311284

mshtml
http://msdn.microsoft.com/library/de...ng/hosting.asp

This is what goes happen with IE without interop.

http://msdn.microsoft.com/security/d...p2websites.asp

I hope this gives again some idea's

Cor
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Hameed Khan | last post by:
hi all, i am getting some problems with my first socket script. can any one of you point me why this is happening. the server script suppose to accept one connection at a time and send countdown...
4
by: Chris Tanger | last post by:
Context: C# System.Net.Sockets Socket created with constructor prarmeters Internetwork, Stream and TCP everything else is left at the default parameters and options except linger may be changed...
2
by: Droopy | last post by:
Hi, I try to implement a reusable socket class to send and receive data. It seems to work but I have 2 problems : 1) I rely on Socket.Available to detect that the connection is closed (no...
2
by: Rene Sørensen | last post by:
We are 4 students working on a assignment, that our teacher gave use, normally we do this is C++, but the 4 of us, use C# more often that C++ so… We made a small games called reversi, now our job...
2
by: Nuno Magalhaes | last post by:
I've got a simple problem I guess. How do I know when a connection is terminated without losing any data? I do something like the code below, but sometimes between socket.Receive and socket.Send...
4
by: Engineerik | last post by:
I am trying to create a socket server which will listen for connections from multiple clients and call subroutines in a Fortran DLL and pass the results back to the client. The asynchronous socket...
0
by: palmem | last post by:
I am trying to write a simple FTP server in order to learn about sockets This is my first time trying sockets This code should take a connection on port 8110, dump it to a client "thread" (not...
5
by: darthghandi | last post by:
I've created a class to listen to all interfaces and do a BeginAccept(). Once it gets a connection, it passes the connected socket off and stores it in a List. Next, it continues to listen for...
0
by: Mangabasi | last post by:
Howdy, I would like to use the Synthesis Toolkit for a demo. I downloaded the STK from http://ccrma.stanford.edu/software/stk/index.html. It seems very powerful and user friendly. There are...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.