Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Windows Service for Internet time logging

Windows Service for Internet time logging

Scheduled Pinned Locked Moved Visual Basic
helptutorialquestion
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DHARMA R
    wrote on last edited by
    #1

    Dear All, I am in such a need of creating a Window service for logging my internet In and Out timing. That means When I connected to the internet my windows service should log the time of entering. At the same time it should log the time of leaving also. One more thing is that windows service should send the report to the dedicated mail account periodically. Can anyone detail me how to create a Windows service to meet my req ?. Your help w'd be appreciated. Thanks DHARMA.R

    M D 2 Replies Last reply
    0
    • D DHARMA R

      Dear All, I am in such a need of creating a Window service for logging my internet In and Out timing. That means When I connected to the internet my windows service should log the time of entering. At the same time it should log the time of leaving also. One more thing is that windows service should send the report to the dedicated mail account periodically. Can anyone detail me how to create a Windows service to meet my req ?. Your help w'd be appreciated. Thanks DHARMA.R

      M Offline
      M Offline
      Milton Karimbekallil
      wrote on last edited by
      #2

      hi I don't understand the first requirement of logging the entering time and leaving time. Coz if it is a web server then it will be online all the time right? Otherwise if u are talking about the time of logging into ur website then u can use ur client application to log the log in and logout time. Normally Login and Logout time are entering using the client app right? Second requirement is straight: periodically send mails to various clients. For this you can use the windows service or it will be more easy and efficient if u goes for DTS Packages in Sql Server provided ur database shud be MSSQL Server. Simply create a DTS package and schedule to execute it periodically. rgds..mil10

      1 Reply Last reply
      0
      • D DHARMA R

        Dear All, I am in such a need of creating a Window service for logging my internet In and Out timing. That means When I connected to the internet my windows service should log the time of entering. At the same time it should log the time of leaving also. One more thing is that windows service should send the report to the dedicated mail account periodically. Can anyone detail me how to create a Windows service to meet my req ?. Your help w'd be appreciated. Thanks DHARMA.R

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        If you using a dialup connection, it's not so hard just monitoring IP for that connection. But this method won't work if your on a cable modem or some other permanent connection. If you are looking at monitoring network traffic, then it will be an inaccurate accounting of the time since there, for the most part, is no traffic while your staring at the page you just downloaded. A better method would be to monitor the task list for any instance of IEXPLORE or what name is being used for Netscape or whatever browser your using. If the instance is in the task list, you must be browsing the internet or at least viewing a page local to the machine. You would also have to monitor for any FTP client you happen to be using... Another idea would be to write your own proxy server. You would be able to monitor all your connections independent of the client app that your using at the time, but again how do you know when your not viewing pages anywmore since the connection is only there when you are actually downloading something? RageInTheMachine9532

        D 1 Reply Last reply
        0
        • D Dave Kreskowiak

          If you using a dialup connection, it's not so hard just monitoring IP for that connection. But this method won't work if your on a cable modem or some other permanent connection. If you are looking at monitoring network traffic, then it will be an inaccurate accounting of the time since there, for the most part, is no traffic while your staring at the page you just downloaded. A better method would be to monitor the task list for any instance of IEXPLORE or what name is being used for Netscape or whatever browser your using. If the instance is in the task list, you must be browsing the internet or at least viewing a page local to the machine. You would also have to monitor for any FTP client you happen to be using... Another idea would be to write your own proxy server. You would be able to monitor all your connections independent of the client app that your using at the time, but again how do you know when your not viewing pages anywmore since the connection is only there when you are actually downloading something? RageInTheMachine9532

          D Offline
          D Offline
          DHARMA R
          wrote on last edited by
          #4

          Hi, Thanks for ur interest. This is what I need exactly. I have a Pc with internet connection (Dialup connection). My friends and family members are using that Pc for browsing websites. I'd like to log the everyone's total time of internet using. This will help me to track who uses internet connection more. For eg. consider this situation (Assume everyone has seperate windows user account) 1.Friend1 login to Windows. 2.He connected to the Internet using dialup connection at 6.00 P.M 3.He browsing web pages. 4.Friend1 disconnect the internet connection at 8.00 P.M Our Windows service should record the foll. details. ================== Date : 06/04/2004 User : Friend1 In : 6.00 P.M Out : 8.00 P.M ================== Could u understand my prob. Can u suggest me the soln. for this ? Thanks in advance.

          D 1 Reply Last reply
          0
          • D DHARMA R

            Hi, Thanks for ur interest. This is what I need exactly. I have a Pc with internet connection (Dialup connection). My friends and family members are using that Pc for browsing websites. I'd like to log the everyone's total time of internet using. This will help me to track who uses internet connection more. For eg. consider this situation (Assume everyone has seperate windows user account) 1.Friend1 login to Windows. 2.He connected to the Internet using dialup connection at 6.00 P.M 3.He browsing web pages. 4.Friend1 disconnect the internet connection at 8.00 P.M Our Windows service should record the foll. details. ================== Date : 06/04/2004 User : Friend1 In : 6.00 P.M Out : 8.00 P.M ================== Could u understand my prob. Can u suggest me the soln. for this ? Thanks in advance.

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            I already suggested methods of doing this, but it's not as easy as you may think it is. The only way to surely track that a connection is alive is if it is a dial-up modem connection. Since this type of connection is temporary and is not alive the entire time the machine is up, you can watch for changes in the IP stack, like gateway changes, that will occur when the connection is made and dropped. If your using a cable modem or some other permanent connection, then this method will not work since the machine is connected all the time. You would have to monitor the process list for the various web browsers and FTP clients (by name!) to see how long the person is online. RageInTheMachine9532

            D 1 Reply Last reply
            0
            • D Dave Kreskowiak

              I already suggested methods of doing this, but it's not as easy as you may think it is. The only way to surely track that a connection is alive is if it is a dial-up modem connection. Since this type of connection is temporary and is not alive the entire time the machine is up, you can watch for changes in the IP stack, like gateway changes, that will occur when the connection is made and dropped. If your using a cable modem or some other permanent connection, then this method will not work since the machine is connected all the time. You would have to monitor the process list for the various web browsers and FTP clients (by name!) to see how long the person is online. RageInTheMachine9532

              D Offline
              D Offline
              DHARMA R
              wrote on last edited by
              #6

              Hi, Thanks for ur informations. Its v interesting. Say, I am a new bee to VB.NET as well as Windows services. Can u suggest me any resources reg. this. Thanks DHARMA.R

              D 1 Reply Last reply
              0
              • D DHARMA R

                Hi, Thanks for ur informations. Its v interesting. Say, I am a new bee to VB.NET as well as Windows services. Can u suggest me any resources reg. this. Thanks DHARMA.R

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #7

                Writing a Windows Service and monitoring the processes list are not exactly newbee projects. But you can search Amazon and checkout the dozens of books on VB.NET for every level from beginner to advanced programmers and cookbooks. RageInTheMachine9532

                D 1 Reply Last reply
                0
                • D Dave Kreskowiak

                  Writing a Windows Service and monitoring the processes list are not exactly newbee projects. But you can search Amazon and checkout the dozens of books on VB.NET for every level from beginner to advanced programmers and cookbooks. RageInTheMachine9532

                  D Offline
                  D Offline
                  DHARMA R
                  wrote on last edited by
                  #8

                  Hi Dave, Thank u v muc for ur help. I'll check it out. Regards DHARMA.R

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups