The Artima Developer Community
Sponsored Link

Java Answers Forum
Socket Programming

2 replies on 1 page. Most recent reply: Jun 17, 2005 11:54 PM by Vinod A

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Vinod A

Posts: 4
Nickname: vinodkalpa
Registered: Jun, 2005

Socket Programming Posted: Jun 17, 2005 12:09 AM
Reply to this message Reply
Advertisement
Hi,
I wish to do a simple online poker game in java. Shall I write the code throgh socket programming? Is there any need to create a server through socket?(becuase I wish to implement this on a remote host). If I create a server, How will I run it remotely?Should I use the remote server instead of server program created by me?
I have experience in PHP programming. Also I have created simple chat programs run on My school's LAN. Shall I use remote Tomcat server for this purpose?
Shall I use servlet or JSP instead of socket programming.
Please help me.

Thanking in advance.
From,
Vinod A.


Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Re: Socket Programming Posted: Jun 17, 2005 6:43 AM
Reply to this message Reply
I'm sure all the suggested methods would work
(never used JSPs so I have no clue how you'd go
about it). But as for the Java Socket programming
route, you'd probably want to write a server,
and have two controllers (as clients interacting
with that Server) which has a set of rules.

My Soccer 2003 Software Engineering project
used a similar TCP/IP communication protocol
(regulations set out by the instructor).

You can tweak around with the TCP/IP modules
that are on this years project. I believe
the website is:

http://www.engr.mun.ca/~dpeters

You can fool around with the TCP/IP modules
to suite your needs and regulations.

I'm not sure if the code is still up there
(if it isn't my apologies), but from the
explanaition above you can crunch out the
design and get to work.

(Just 1 way of dozens).

Vinod A

Posts: 4
Nickname: vinodkalpa
Registered: Jun, 2005

Re: Socket Programming Posted: Jun 17, 2005 11:54 PM
Reply to this message Reply
Yes. I wish to run the game like a yahoo messenger. Download it from the site,a nd install it on user system and play online with other remote player.

Flat View: This topic has 2 replies on 1 page
Topic: Wireless programming with PDA Previous Topic   Next Topic Topic: configuring netbeans

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use