LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

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

Rep: Reputation: 15
what is tcp/ip programming??


i want to learn tcp/ip programming..
can u please explain me what is it used for..
which language is used to program it.
 
Old 07-29-2004, 12:00 PM   #2
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
The Defense Advance Research Projects Agency (DARPA) originally developed Transmission Control Protocol/Internet Protocol (TCP/IP) to interconnect various defense department computer networks. The Internet, an international Wide Area Network, uses TCP/IP to connect government and educational institutions across the world. TCP/IP is also in widespread use on commercial and private networks.
http://www.protocols.com/pbook/tcpip1.htm


most programming languages give you the ability to use tcp/ip in your programs...

for example, C, C++, Perl, Java, Python, etc...
 
Old 07-29-2004, 12:03 PM   #3
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32
How do you know you want to learn it if you don't know what it is?

In short, it is network programming. And virtually any language worth using has some form of binding to allow you to write TCP/IP programs.

Generally you write TCP/IP programs using some form of "Socket" API. Do a google search and you will turn up a lot. If you have any other more specific questions, most people here will be able to help.
 
Old 07-29-2004, 12:29 PM   #4
gajaykrishnan
Member
 
Registered: Jul 2004
Posts: 65

Original Poster
Rep: Reputation: 15
does the fact that " a computer is standalone & connected to internet"
and "a client side computer connected to the server that is providing the internet connection" pose any restriction on the type of programs that can be run or languages that can be used on these two kinds of computers??
 
Old 07-29-2004, 01:21 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
does the fact that " a computer is standalone & connected to internet"
and "a client side computer connected to the server that is providing the internet connection" pose any restriction on the type of programs that can be run or languages that can be used on these two kinds of computers??
ummm... what??? perhaps you could clarify a bit??
 
Old 07-29-2004, 01:35 PM   #6
gajaykrishnan
Member
 
Registered: Jul 2004
Posts: 65

Original Poster
Rep: Reputation: 15
to make the things clearer..
can u give me some eg. of what all can be done using tcp/ip programming??
perhaps this will help me make the above question clearer..
 
Old 07-29-2004, 02:24 PM   #7
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32
Whatever web browser you are using was done using TCP/IP programming. More specifically, it was written to make requests and recieve responses as defined in the HTTP protocol.
 
Old 07-29-2004, 02:33 PM   #8
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 108Reputation: 108
Quote:
Originally posted by gajaykrishnan
can u give me some eg. of what all can be done using tcp/ip programming??
perhaps this will help me make the above question clearer..
You need TCP/IP programming (in other words a "sockets API"), when you make any program that talks over a network by means of the TCP/IP protocol (by far the most commonly used protocol for networks, including the internet).

So, to mention a few, you need TCP/IP (sockets) programming when you want to make your own:
  • web browser
  • Web server
  • FTP server
  • Chat program
  • e-mail client
  • e-mail server
  • ping
  • port scanner

Last edited by Hko; 07-29-2004 at 02:34 PM.
 
Old 07-29-2004, 02:35 PM   #9
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
your instant messenger also uses tcp/ip... also your email client, etc...

any program you have that actually connects to the internet includes some kinda tcp/ip code...
 
Old 07-29-2004, 04:00 PM   #10
Chris Parker
LQ Newbie
 
Registered: Jul 2004
Location: Houston, Texas
Distribution: Debian, Gentoo, Redhat
Posts: 17

Rep: Reputation: 0
Re: what is tcp/ip programming??

Quote:
Originally posted by gajaykrishnan
i want to learn tcp/ip programming..
can u please explain me what is it used for..
which language is used to program it.
http://www.ecst.csuchico.edu/~beej/guide/net/

This is the tutorial on starting tcp/ip programming (at least for me). You should know C first, though.

It also gives a nice overview of tcp/ip.
 
Old 07-30-2004, 07:09 AM   #11
gajaykrishnan
Member
 
Registered: Jul 2004
Posts: 65

Original Poster
Rep: Reputation: 15
can i monitor what sites a user is accessing using a program that is running as a background process when a user is surfing internet
 
Old 07-30-2004, 07:15 AM   #12
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 108Reputation: 108
If the program is on the same computer, or on the same network segment, you could spy on someone browsing the internet. Programs to do this already exist (of course).

Though one could think of honest reasons to do this, it does not sound very nice of you though!

Last edited by Hko; 07-30-2004 at 07:18 AM.
 
Old 07-30-2004, 07:18 AM   #13
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
Originally posted by gajaykrishnan
can i monitor what sites a user is accessing using a program that is running as a background process when a user is surfing internet
YES. And you can then use that information to bombard the user with targeted ads and spam.

That's called SPYWARE.

=)

 
Old 07-30-2004, 07:23 AM   #14
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
Hey maybe it is for administrative purpose, in this case it is named PROXY
 
Old 07-30-2004, 07:24 AM   #15
gajaykrishnan
Member
 
Registered: Jul 2004
Posts: 65

Original Poster
Rep: Reputation: 15
can u please tell me how to do it??
 
  


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
which programming language is used to do tcp/ip programming?? gajaykrishnan Linux - Networking 9 12-21-2012 06:16 AM
TCP/IP book for socket programming hubabuba Programming 3 10-17-2005 04:46 AM
tcp-ip programming jeril842002 Linux - General 1 07-30-2004 12:59 PM
programming in c, problem TCP -> SYN,... bebe531 Programming 1 05-25-2004 03:58 PM
TCP/IP programming assman Programming 3 04-08-2004 12:48 AM


All times are GMT -5. The time now is 10:25 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