Click here to Skip to main content
15,889,176 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,

I am writing an application which will trace all chat of employees using any chat facility like gmail, yahoo etc.

I am thinking is it possible to capture a message from serial port.

Anyone have knowledge regarding this so that you can help me with any example.

Thanks
Posted
Comments
Sergey Alexandrovich Kryukov 21-Jun-11 22:20pm    
Chat? Serial port?! Does it have and relation to real life?
--SA

You can check to see if a port is being used by using SerialPort.GetPortNames Method.
http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.getportnames.aspx[^]

Once a port is opened you cannot monitor the activity on a serial port, unless you are using a hardware device.

You can use Portmon from Sysinternals to monitor serial port activity but you need to know which port is going to be used beforehand.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 21-Jun-11 22:21pm    
This is a good advice, my 5.
As to the question... chat and serial port? what a fantasy!
--SA
S Houghtelin 22-Jun-11 6:16am    
Thanks Sergey.

I did wonder what the OPs intent was.
Well, you could capture a message going over a serial port, but that's not going to do you any good at all capturing something that never touches a serial port.

You cannot do what you want. Why? Because the chat seesions over GMail, Yahoo IM, and many others are all encrypted. You cannot see what's inside those encrypted conversations.
 
Share this answer
 

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



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