Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Networking
Hi
 
I want to maintain my chat history with another person.
Details are as follows
Whenever i go to chating on line i want to record my login and logoff time alongwith my ip address,username,and messages sent by me and received by me during that time with their username and ipaddress....under different chat portals.
 

Let me tell that i have just thought about this and now i m willing to make it and test it first on my machine and then sell it in the market and i sincerely need help on this so any kind of help will be highly appreciated...
 

Thank You..
Posted 11-Dec-11 21:55pm
sangaur396
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hi sangaur,
 
You can do this by following ways,
 
1) Using Database
Use database to store all the required attributes against unique userid.
 
2) Using Serialize Object
Crate one class with having all the required attributes as member of the class. Create the object of it and intialize it at runtime with attributes and save it to the file.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

you can use it with data base...and code available for getting ip address are:
 
 IPHostEntry ipEntry = Dns.GetHostByName(st);
                    IPAddress[] addr = ipEntry.AddressList;
 
                    for (int i = 0; i < addr.Length; i++)
                    {
 
                        ip = addr[i].ToString();
                        listBox2.Items.Add(addr[i].ToString());
                    }
 
used to get connected system ip address and bind them into list box
  Permalink  
v2
Comments
RaviRanjankr at 13-Dec-11 16:37pm
   
[Edited]Code is wrapped in "pre" tag[/Edited]

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

  Print Answers RSS
0 OriginalGriff 6,045
1 DamithSL 4,601
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,260


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 13 Dec 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100