LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 07-28-2004, 11:08 AM   #1
gajaykrishnan
Member
 
Registered: Jul 2004
Posts: 65

Rep: Reputation: 15
which programming language is used to do tcp/ip programming??


i actually want to write a program which keeps a watch on which and when a user is accessing sites on the internet.
will i have to learn tcp/ip programming for this??
if so..
i want to know in which language is it programmed..
kindly guide me..
 
Old 07-28-2004, 11:17 AM   #2
okmyx
Member
 
Registered: May 2004
Location: Cornwall, UK
Distribution: Ubuntu 8.04
Posts: 464

Rep: Reputation: 31
Depends on if you want to develop it for the sake of learning to program?

Otherwise i'd use a proxy server and monitor the log files it generates.
 
Old 07-28-2004, 11:20 AM   #3
gajaykrishnan
Member
 
Registered: Jul 2004
Posts: 65

Original Poster
Rep: Reputation: 15
no i want to write a program for this as i want to store these data in a database and use this for some other purpose..
so please tell me what should i learn to program this.
 
Old 01-09-2008, 01:14 PM   #4
short circut
Member
 
Registered: Jun 2006
Distribution: Fedora Core, and Gentoo eventually, but i hate (XKEU)buntu
Posts: 48

Rep: Reputation: 15
Quote:
Originally Posted by gajaykrishnan View Post
no i want to write a program for this as i want to store these data in a database and use this for some other purpose..
so please tell me what should i learn to program this.
I dont know the answer to your problem. ANd i am sorry but something sounds very suspicious and possibly illegal with what you are trying to do...


on the other hand have you tried ethereal.(ithink its called wire shark now.)
 
Old 01-09-2008, 04:15 PM   #5
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
Originally Posted by gajaykrishnan View Post
i actually want to write a program which keeps a watch on which and when a user is accessing sites on the internet.
will i have to learn tcp/ip programming for this??
if so..
i want to know in which language is it programmed..
kindly guide me..
Quote:
Originally Posted by gajaykrishnan View Post
no i want to write a program for this as i want to store these data in a database and use this for some other purpose..
so please tell me what should i learn to program this.
It really depends on what exactly you want to do. Not enough detail has been provided so far. You won't have to do any TCP/IP programming if you just wanna write something that analyses already-generated accessed-sites lists. If, OTOH, you want to write a program which does the generation itself, you could still use pretty much any network-capable generic programming language to do it. Maybe try a combo such as Python with Twisted. Python seems to be quite newbie-friendly and there's tons of books about it.

Last edited by win32sux; 01-09-2008 at 04:17 PM.
 
Old 01-09-2008, 06:26 PM   #6
KnightHawk
Member
 
Registered: Aug 2005
Posts: 128

Rep: Reputation: 15
Quote:
Originally Posted by short circut View Post
I dont know the answer to your problem. ANd i am sorry but something sounds very suspicious and possibly illegal with what you are trying to do...


on the other hand have you tried ethereal.(ithink its called wire shark now.)
I'd doubt it. Even if we assume the most nefarious of purposes, its unlikely for him to be in a posistion to actually do it in a way that is truly illegal. There are scores of perfectly legitimate reasons for wanting to do this. Which although may make some uncomfortable are not in any way illegal.

For example a network admin for a coporation.

A guy running his own home network and wants to spy on his girlfriend, or vice versa.
 
Old 01-09-2008, 06:31 PM   #7
KnightHawk
Member
 
Registered: Aug 2005
Posts: 128

Rep: Reputation: 15
Quote:
Originally Posted by gajaykrishnan View Post
i actually want to write a program which keeps a watch on which and when a user is accessing sites on the internet.
will i have to learn tcp/ip programming for this??
if so..
i want to know in which language is it programmed..
kindly guide me..
The short answer is no. Because there are any number of pre-built tools out there for doing this.

The first thing that comes to mind is a firewall. A good dedicated firewall will do exactly what you want and more.

Another option is having the computer in question use a proxy server then running the logs thru any number of scripts and programs out there to analyze the logs. I use squidalyse myself.

If you wanted something a little more custom tailored, then perhaps a combination of ethereal and using perl scripts to parse that data into something meaningfull and using python tools to get that data into mysql. Then using php and html to report on that data.

Then of course there are the actual networking monitoring suites out there. If you had the money or some means otherwise of aquiring those programs.
 
Old 01-09-2008, 07:32 PM   #8
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,696
Blog Entries: 5

Rep: Reputation: 241Reputation: 241Reputation: 241
Quote:
Originally Posted by gajaykrishnan View Post
i actually want to write a program which keeps a watch on which and when a user is accessing sites on the internet.
there are many available. Search for Web monitoring in google.
Quote:
will i have to learn tcp/ip programming for this??
if you want to start a internet monitoring software from scratch, then yes

Quote:
i want to know in which language is it programmed..
kindly guide me..
If you are referring to software, then which programming language, that supports tcp/ip APIs can do it.
If you are talking about how tcp/ip is coded in your *nix OS, then you have to learn some C/C++.
 
Old 01-15-2009, 11:12 AM   #9
serafim
LQ Newbie
 
Registered: Aug 2005
Location: outside Stockholm in Sweden
Distribution: different flavours of Ubuntu
Posts: 8

Rep: Reputation: 0
Quote:
Originally Posted by short circut View Post
I dont know the answer to your problem. ANd i am sorry but something sounds very suspicious and possibly illegal with what you are trying to do...
Depends on what you want to accomplish. I have written "guardians" that listen to many different ports on my server installation and they report every attempt to enter, sort them and store in a database used to report abuse attempt to the internet providers that are used by those who make the intrusion attempts. Programs have been written in any language at hand, Perl, C, C++, Java, Python. I'm not religious in programming and use whatever is working on the actual computer.
In java it was something like 20 lines of code to store info about the intrusion attempt, if I remember correctly.

Last edited by serafim; 01-15-2009 at 11:13 AM. Reason: incorrect spelling
 
Old 12-21-2012, 05:16 AM   #10
sudarsanan
LQ Newbie
 
Registered: Dec 2012
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by gajaykrishnan View Post
i actually want to write a program which keeps a watch on which and when a user is accessing sites on the internet.
will i have to learn tcp/ip programming for this??
if so..
i want to know in which language is it programmed..
kindly guide me..
preparably the lang can use c++ or java
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
D Programming Language XsuX Programming 7 11-17-2004 08:55 PM
what is tcp/ip programming?? gajaykrishnan Programming 24 07-31-2004 04:20 AM
tcp-ip programming jeril842002 Linux - General 1 07-30-2004 11:59 AM
TCP/IP programming assman Programming 3 04-07-2004 11:48 PM
Programming Language Colonel Panic Programming 9 08-10-2001 01:57 AM


All times are GMT -5. The time now is 01:21 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration