+ Reply to Thread
Results 1 to 3 of 3

Thread: TCP/IP listener in ASP .NET

  1. #1
    Barn Newbie jcexited is an unknown quantity at this point jcexited's Avatar
    Join Date
    Sep 2010
    Posts
    5
    Rep Power
    2

    TCP/IP listener in ASP .NET

    I'm trying to develop a web application for a system consisting of several hardware devices, which will connect to a specific IP and port of a server to send some measuring data (plain text). This data will be stored in a SQL Server database in the server. Then, the users will connect to this server using a browser to view the stored data.

    I will use ASP .NET (C#) for developing the web application for the users to access the stored data in the database (it's a standard web application with database access to retrieve and show information).

    I don't know what is the best way to develop the application that will act as a TCP/IP listener to receive the hardware devices data, since it must run on the same server that stores the SQL Server database.

    Could someone give me some advice or suggestion about how to develop the server listener application? I think a web service is not a good solution, because the client (hardware device) won't be able to use this technology (it will send a fixed data buffer after its connection request has been accepted).

    Thanks in advance.

  2. #2
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Not something I've done before, but does this help?

    TCP Listen port with multiple connections in C#

    Seems to be pretty much what you're trying to achieve. Write it within a service and it can continue to run in the background on the server.

    Hope that helps.

  3. #3
    Barn Newbie jcexited is an unknown quantity at this point jcexited's Avatar
    Join Date
    Sep 2010
    Posts
    5
    Rep Power
    2

    Windows service could be a solution. I think I could use sockets, multithreading and a lot of code for handling the details of concurrency and making the application secure from attacks.

    But, I thought that some of the new technologies of Visual Studio could be useful for this kind of application (WCF, .Net remoting or similar). Do you know if exists an alternative that could make easier this development?

    In case of using a windows service, would be C# .Net suitable for this development or should I use a lowest level language as VC++?

    Thanks for your help.

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO