I want to develop a Java game that works on adhoc wireless environment. Do you know any source that I can search for it and learn for it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Adhoc and wireless is not related to Java. An ad-hoc wireless network is something that two computers can set up between each other to create a network. At that point your Java game is using a network the same as any other network (the fact that is is wireless and ad-hoc is irrelevant – to Java it looks exactly the same as a wired network for example).
Your java program will then have the same TCP/IP and UDP/IP stack available to it and can use Socket/ServerSocket (TCP) or DatagramSocket (UDP) to communicate.
The following page gives an overview of networking in Java:
http://docs.oracle.com/javase/tutorial/networking/overview/networking.html
And the following page has an example of a very small simple networked java game that might be helpful to get to grips with the basics:
http://www.dr-mikes-maths.com/tictactoe.html