PC Review


Reply
Thread Tools Rate Thread

connection event

 
 
warbornster@gmail.com
Guest
Posts: n/a
 
      27th Apr 2007
is there some kind of an event that starts when I establish a
connection to internet?

 
Reply With Quote
 
 
 
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      27th Apr 2007
No, not really. A good number of users are connected to the internet
all the time now from home (either behind a firewall/NAT router or directly
connected to a cable modem which is always on), or they are at work, in
which case they access the internet through proxy servers, and are always
connected to their internal network. Such an event would almost never get
fired.

What are you trying to do?


--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> is there some kind of an event that starts when I establish a
> connection to internet?
>



 
Reply With Quote
 
warbornster@gmail.com
Guest
Posts: n/a
 
      27th Apr 2007
It is a program that runs in the background and turns on the proxy in
IE when Im in school. Right now I have a timer that check the
connection every second, and that fells kind of lame ^^


On 27 Apr, 18:21, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.com> wrote:
> No, not really. A good number of users are connected to the internet
> all the time now from home (either behind a firewall/NAT router or directly
> connected to a cable modem which is always on), or they are at work, in
> which case they access the internet through proxy servers, and are always
> connected to their internal network. Such an event would almost never get
> fired.
>
> What are you trying to do?
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - m...@spam.guard.caspershouse.com
>
> <warborns...@gmail.com> wrote in message
>
> news:(E-Mail Removed)...
>
>
>
> > is there some kind of an event that starts when I establish a
> > connection to internet?- Dölj citerad text -

>
> - Visa citerad text -



 
Reply With Quote
 
sklett
Guest
Posts: n/a
 
      27th Apr 2007
I don't think that is a *bad* solution. It's one of the problems where "how
else would you do it?" If there was an event from the OS it would be
triggered via the same method most likely; polling the connection every set
interval.

If you want to detect a physical connection I think you can query the
adapter for it's connection state (IE: cable unplugged)


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
It is a program that runs in the background and turns on the proxy in
IE when Im in school. Right now I have a timer that check the
connection every second, and that fells kind of lame ^^

On 27 Apr, 18:21, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.com> wrote:
> No, not really. A good number of users are connected to the internet
> all the time now from home (either behind a firewall/NAT router or
> directly
> connected to a cable modem which is always on), or they are at work, in
> which case they access the internet through proxy servers, and are always
> connected to their internal network. Such an event would almost never get
> fired.
>
> What are you trying to do?
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - m...@spam.guard.caspershouse.com
>
> <warborns...@gmail.com> wrote in message
>
> news:(E-Mail Removed)...
>
>
>
> > is there some kind of an event that starts when I establish a
> > connection to internet?- Dölj citerad text -

>
> - Visa citerad text -




 
Reply With Quote
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      27th Apr 2007
Well, yes, that's going to kill your computer's performance running it
like that.

Why not just have a script or something which will change your proxy
settings when you are at school, and another one to set them back when you
are at home?


--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
It is a program that runs in the background and turns on the proxy in
IE when Im in school. Right now I have a timer that check the
connection every second, and that fells kind of lame ^^


On 27 Apr, 18:21, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.com> wrote:
> No, not really. A good number of users are connected to the internet
> all the time now from home (either behind a firewall/NAT router or
> directly
> connected to a cable modem which is always on), or they are at work, in
> which case they access the internet through proxy servers, and are always
> connected to their internal network. Such an event would almost never get
> fired.
>
> What are you trying to do?
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - m...@spam.guard.caspershouse.com
>
> <warborns...@gmail.com> wrote in message
>
> news:(E-Mail Removed)...
>
>
>
> > is there some kind of an event that starts when I establish a
> > connection to internet?- Dölj citerad text -

>
> - Visa citerad text -




 
Reply With Quote
 
sklett
Guest
Posts: n/a
 
      27th Apr 2007
I don't really understand what it is you are trying to accomplish (I'm
sleepy but if you need to take action when you change locations, maybe
the adapter status query would solve your problem efficiently. When you
detect a connection is physically lost set a flag, keep polling the
connection state, when the connection state indicates you have a phys.
connection again run some net utils to try and determine what network you
are, then take appropriate action.

Like I said, I don't really understand what you want to do so the above
suggestion could be garbage!

"Nicholas Paldino [.NET/C# MVP]" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> Well, yes, that's going to kill your computer's performance running it
> like that.
>
> Why not just have a script or something which will change your proxy
> settings when you are at school, and another one to set them back when you
> are at home?
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - (E-Mail Removed)
>
> <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> It is a program that runs in the background and turns on the proxy in
> IE when Im in school. Right now I have a timer that check the
> connection every second, and that fells kind of lame ^^
>
>
> On 27 Apr, 18:21, "Nicholas Paldino [.NET/C# MVP]"
> <m...@spam.guard.caspershouse.com> wrote:
>> No, not really. A good number of users are connected to the internet
>> all the time now from home (either behind a firewall/NAT router or
>> directly
>> connected to a cable modem which is always on), or they are at work, in
>> which case they access the internet through proxy servers, and are always
>> connected to their internal network. Such an event would almost never
>> get
>> fired.
>>
>> What are you trying to do?
>>
>> --
>> - Nicholas Paldino [.NET/C# MVP]
>> - m...@spam.guard.caspershouse.com
>>
>> <warborns...@gmail.com> wrote in message
>>
>> news:(E-Mail Removed)...
>>
>>
>>
>> > is there some kind of an event that starts when I establish a
>> > connection to internet?- Dölj citerad text -

>>
>> - Visa citerad text -

>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Event on connection mode change? Derick Swart Microsoft Outlook Program Addins 2 22nd Jan 2010 10:30 PM
Connection problem due to event id 2505 Rob Windows XP Networking 4 7th Jan 2007 04:03 AM
event if connection would be established Dirk Reske Microsoft C# .NET 3 26th Nov 2004 01:56 PM
Network Connection Event Listener Joe Hanna Microsoft Dot NET Framework 13 16th Mar 2004 06:23 AM
Connection event D. Veloper Microsoft Dot NET Compact Framework 1 7th Mar 2004 04:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:13 PM.