Click here to Skip to main content
15,896,501 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi to all

i am creating an application in c# windows using socket programming..

both client and server is working well.

but main concept is when working both client and server

if no process in client program

For Example :

1). idle in gmail

2). like screen saver in windows when no process





at the time in server system shows or alert Like

" The Client Is In IDLE "



how to do this process in c# windows application.. please any body help.. ( sorry for my English )
Posted
Updated 1-Feb-12 1:09am
v2

Dear Sreenath,

The question what you are asking is completely different, Because in the real time environment it is very complex task to server to monitor all clients which are connected to the server, it leads server slow. So normally at client side only the process of idle time count happening , based on it security will be implemented at client side only.

Any way as per your requirement, look it
Monitoring client connections.
Disconnect clients that are idle or that have a network address in a specified range

http://msdn.microsoft.com/en-us/library/windows/desktop/dd892435(v=vs.85).aspx[^]


Thanks & Regards,

SP
 
Share this answer
 
v3
You are going to have to define how your client app will be idle. Does this mean that the user has not interacted with the app for a certain amount of time, in which case you should create a timer in the app that gets restarted whenever the user does some interaction i.e moves the mouse, clicks a button etc. Then, if the timer reaches a certain predefined limit, it sets off a predefined set of events, such as showing an idle screen, loading an image etc.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900