PDA

View Full Version : network programming


adarsh
04-08-2003, 11:12 AM
i want to know , if the programs written for local network will work for internet or not.
if they wont work, what all the modifications we have to do in the program.
and should we add the mime headers manually or it will be added automatically.
are there any sites which help to write the programs with work on internet

x33
04-08-2003, 12:17 PM
Your apps should work with both local/global networks if you use the TCP/IP stack. And you don't need to make any modifications if you haven't hardcoded any addresses/paths/ips/etc...
If you want to start programming for networks and you look for some good source of info about it, I think this site is the best to start with. =)
Actually, you have to decide what technology/protocols/architecture you want to code for. If you want to code with TCP/IP I would recommend you to read the Sean Walton's "Linux Socket Programming".
Try this link to start:
http://www.ecst.csuchico.edu/~beej/guide/net/

adarsh
04-08-2003, 01:02 PM
i didnt get the answer abt mime, should we add the headers manually or not?

RobSeace
04-08-2003, 01:15 PM
MIME headers?? What protocol are you refering to, specifically??
SMTP, POP, HTTP, something else??

MIME has nothing to do with network coding, directly... It's an app-level
encoding format standard, which is employed by a few different app
protocols... So, it only makes sense to talk of it in relation to something
else, such as HTTP... However, whatever protocol you're talking about,
if you want MIME used, then I would expect you would have to take care
of it yourself, anyway... Unless you use some library which handles it
for you, or something... *shrug*

x33
04-08-2003, 11:36 PM
adarsh, I think you misunderstand what Internet is... The difference between the Internet and the World Wide Web is huge (web is built on top of the internet).
Internet is the global network of communicating devices (computers). It provides some means of communication between its members. Those are called 'protocols'. They are specially designed to allow computers of different types to communicate properly (a single machine usually doesn't know of the type of the other machine it is 'talking' to).
Imagine machines to be post offices. Each office has its employees (protocols). Protocols are responsible for transfering messages. They check the 'post messages' (they are called 'packets'), the source and destination addresses and transmit those packets to the next 'post office' until the message reaches the destination. Each employee is responsible for its own operation. IP protocol is responsible for sending packets between computers (IP is the envelope for the packets). TCP protocol is to control the transmission of the packets (check to see if they are delivered properly). As for the Web you can think of it as of a Greeting Card from the envelope. That's it. Every protocol is built on top of lower protocols. IP includes TCP, TCP includes Web (http).
Read more about the design of the networks and the Internet.

adarsh
04-09-2003, 06:01 AM
mr x33 thanks a lot for ur clear and promp reply