Meaningless Drivel is fun!*
The moose likes Sockets and Internet Protocols and the fly likes Help me Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Help me" Watch "Help me" New topic
Author

Help me

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
How to Write a computer program that takes the name of a protocol port and prints the port number.
for example,if Http is used,it should print the port number as 80
if ftp is used,21 should be printed.
Thanks,
Kalnayak
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
Kalnayak,
Please read Naming Policy and follow it, it does provide benefits to you, JavaRanch does a book give away on a forum periodically and only those who meet the nameing policy are entered.
Looking forward to your posts

I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
 
Don't get me started about those stupid light bulbs.
 
subject: Help me
 
Similar Threads
Running tomcat apache 5.5 on fedora 14 problem
Port in URL string: is it for destination or for source?
url is opening when we give IP but not opening through dns name
How to know which port RAD built in Websphere 6.1 server is running on my widows xp laptop
Memory Profiling using JProbe with Weblogic