473,503 Members | 13,285 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Re: URL Networrking and Socket networking

4 New Member
Want to know the difference between URL networking and Socket networking. Also and example from each and the networking technique is most appropriate for the example.
Apr 3 '07 #1
1 5267
RevBooter
69 New Member
URL(uniform resource locator) networking - A URL is a specially-formatted text string that defines a location on the Internet. URL strings contain three parts or substrings:
1. network protocol
2. host name or address
3. file location
The network protocol substring determines the underlying Internet protocol to be used in reaching the location. These strings consist of a standard protocol name followed by the :// characters. Typical protocols found in URLs include http://, ftp://, and mailto://.

The host substring immediately follows the protocol defintion. Hosts may be defined by Internet-standard naming (DNS) or by IP address. For example, a URL of of http://compnetworking.about.com or, equivalently, http://209.143.212.20 contains the protocol and host information needed to access this Web site.

The file location portion of a URL defines the location of a network resource. Resources are files that can be plain text files, documents, graphics, or programs, and resource names are relative to a local root directory. Technically, a URL like http://thescripts.com contains an implied file location of /, that Web servers like Apache automatically translate to a specific file name like index.htm. All other specific files exist in a hierarchy or directory tree underneath the root, such as the following:

RELATIVE FILE LOCATION
/batman/waynemanor/alfred.htm

COMPLETE URL
http://random.com/batman/waynemanor/alfred.htm

When creating HTML pages, the author can choose to use either the relative file locations or complete URLs. A user of the Internet generally works with complete URLs.

socket networking - A socket represents a single connection between two network applications. These two applications nominally run on different computers, but sockets can also be used for interprocess communication on a single computer. Applications can create multiple sockets for communicating with each other. Sockets are bidirectional, meaning that either side of the connection is capable of both sending and receiving data. usually a connection between client and server on a specific port number. Socket networking can be written in java for example

try {
serverSocket = new ServerSocket(4444);
} catch (IOException e) {
System.out.println("Could not listen on port: 4444");
System.exit(-1);
}

java socket check this out, could be handy for you if you are thinking of writing sockets! :)
Apr 3 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1566
by: Bernhard Schmidt | last post by:
Hello, sorry for bothering, I'm not a programmer and I don't do much python, I'm more a networking guy trying to get his favourite linux distribution to update through the shiny new protocol...
6
2871
by: Harbinger of Doom | last post by:
Hello, I'm currently working on a project that needs to send data over a network I use the SOCKET datatype to do that. Everything works perfectly, but there's just one problem: If I try to...
2
4008
by: Ed Fair | last post by:
Hi, I am having a name collision between a library call and a class I've created. My class is called "socket", it abstracts a TCP socket. In my constructors for my class, I am calling the...
3
2181
by: ferbar | last post by:
Hello all, This may sound pretty basic stuff.. but I'm working on a socket example whose client seems to work fine, but the server doesn't send to the client the expected result. The problem is...
4
6297
by: BadOmen | last post by:
Hi, What is the different between 'System.Net.Sockets.Socket' and 'System.Net.Sockets.TcpClient'? When do I use System.Net.Sockets.TcpClient and System.Net.Sockets.Socket?? Yours, Jonas
6
6438
by: roblugt | last post by:
I have what I imagine is a well-known .Net networking problem, but even though I've Googled for some time I've not yet come across a thread where this has been fully explained... There is a...
11
8578
by: atlaste | last post by:
Hi, In an attempt to create a full-blown webcrawler I've found myself writing a wrapper around the Socket class in an attempt to make it completely async, supporting timeouts and some scheduling...
6
3041
by: Maxim Veksler | last post by:
Hello, I wish to do some low level network stuff using python. I've googled somewhat and came up with pylibpcap, trouble is I can't compile it on my Ubuntu 6.10 workstation. Can someone please...
1
1889
by: chinaemerem ibeawuchi | last post by:
What is the difference between URL networking and Socket networking? with an example of each type and state why the choosen networking technique is most appropriate for the example.
0
7212
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7296
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7470
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4696
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3186
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1524
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
405
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.