which programming language is used to do tcp/ip programming??
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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..
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.
Distribution: Fedora Core, and Gentoo eventually, but i hate (XKEU)buntu
Posts: 48
Rep:
Quote:
Originally Posted by gajaykrishnan
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.)
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
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.
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.
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.
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++.
Location: Nacka, just outside of Stockholm, Sweden
Distribution: Manjaro Mate, Ubuntu Mate, Debian
Posts: 22
Rep:
Quote:
Originally Posted by short circut
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
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..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.