Solved

Introduction to Sockets

Posted on 2004-09-04
10
225 Views
Last Modified: 2010-03-31
Hi all

Ive just stated to read up on the use of Sockets, Ive read the Java tutorial about how sockets are controlled and used, the one thing that I'm having problems with is how to test the code ive generated.

Im I going to need a server to test the ability to control sockets, or is there a way to test the code on a standalone before I deploy it on the server...

Any help would be great

Many thanks

Kris
0
Comment
Question by:KrisM82
  • 6
  • 4
10 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 11979705
Depends what kind of service you're talking about. Obviously if you're using a client to a generic service, e.g. ftp, then you're going to find it easier to use an existing server. If, on the other hand, the service is a custom one, you'll have to write your own server.
0
 

Author Comment

by:KrisM82
ID: 11979827
Yeah I know I have to write my onwn server side controller, I'm creating a simple messaging system like MSN or AOL messenger, just to get use to how sockets are used...

What I was wondering was if I could develope both on a standalone machine and test it, or would the server side application have to be placed on a server...

As at the moment I havent got a network setup I would need to test it on one machine, could this be done by creating the server software and running it on a standalone machine and then create and run the client side software on the same machine, would this work?

not sure if thats to clear...

But hope you understand what im getting at
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 25 total points
ID: 11979834
>>and then create and run the client side software on the same machine, would this work?

Yes it would
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 86

Expert Comment

by:CEHJ
ID: 11979838
If you're doing this, i would recommend you look at one of the existing main protocols for chat services and implement it (you can implement it incrementally). That way you'll learn more and avoid reinventing the wheel
0
 

Author Comment

by:KrisM82
ID: 11979844
Cheers, Im only realy doing this to see how sockets work, not to actually make the application fully, but I figured its should give me an overview of how sockets are controlled and maintained
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 11979852
OK ;-)
0
 

Author Comment

by:KrisM82
ID: 11979858
Thanks for the help :0)
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 11979865
:-)
0
 

Author Comment

by:KrisM82
ID: 11979888
One last thing for future references, where could I find details about the chat potocols you mentioned?
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 11979989
This is one of the main protocols, but i don't know if it's been superseded yet..

http://www2.rad.com/networks/1995/irc/irc.htm
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
couple of eclipse 5 46
servlet filter example 37 72
Crystal Reports Licensing Questions 4 37
Cisco ASA: Java web start no go, asdm launcher no go 3 39
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question