Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I was wondering, searched a lot in google, even tho no result, how to make an actionscript program connect with another pc.
Here's a schema i made
in the first image we have two computers, and i'm searching for the other one, and i press connect
in the second image, now that we connected we share 3 pictures...
That's just an example tho ;D
Any idea how to make a connection between users?
The multiplayer connection between users i done via sockets. But for beginners, it is usually a good idea to use some ready made library or platform to make things easier.
For flash, multiplayer frameworks that exist are
SmartFoxServer
AmfPHP
Player.IO
Red5
and many more.
Have a look at Socket Programming. These are some useful links:
http://docs.oracle.com/javase/tutorial/networking/overview/networking.html
http://docs.oracle.com/javase/tutorial/networking/sockets/
http://www.tutorialspoint.com/java/java_networking.htm
Node.js using Socket.io would be a good fit for what you need. Then use the socket.io-flash lib on your ActionScript side to talk to your server.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I am developing one android application in java and i am using neo4j as a database for this app.
Lets, consider i will store the static cypher query in a string. Then after the user clicks on the button, i want to send this query(string) to neo4j server and then execute it on neo4j server and return the result.
My question is that, Is it possible? If yes, how can i do this ? Is there any easy/proper way to do?
Any help will be highly appreciated.
If you want to talk directly to Neo4j, you can use either:
The HTTP API
The Binary Bolt Protocol
If you would rather use middleware, there are many many different options:
Java
.NET
JavaScript
Python
Go
Ruby
PHP
...
When building mobile apps my personal preference is to build a standard API in a middleware server then use HTTPS calls from the app (neo4j-graphql-js has also been awesome for a couple projects), but there are enough stacks that you have the freedom to do it your way.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am designing an IT healthcare system for academic purposes. I would like to create a database in an ordinary Internet web-domain and a separate Java client-application.
Somehow I want the client to have access in the database through Internet. I am looking for the technology to implement that. I would really appreciate if you could share any ideas of how can I do that?
Giving direct access to the database over the public Internet is a discredited approach. Instead applications are designed as three-tiered, such that on the server side you have a dedicated application server which communicates with the database as needed.
There are many frameworks which make this task easier, such as Grails (lightweight), the Spring Framework (industrial-strength, quite heavyweight), or the Java EE platform (more heavyweight than Spring).
I would suggest developing locally.
Run your database on Vagrant or just a plain old VM and treat it like its an external database server.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
for my new project I need to write server-side application that will serve some of simple requests. I have no experience of writing server-side application, so I need some advice.
The problem is that I don't know how to start; I've spent couple of hours searching google for some guidelines, but I got nowhere.
I need to write application that will ran on the server (I've installed Ubuntu server in VirtualBox and used briged connection, so I can access it from my network) and will serve some requests:
connnect to server
authorize user (check user and his pass in db)
store some data in db on connection (for example IP address)
I am not sure which language would be best to use and what do I need to know to implement that app. This is my private project, which I came up with to learn something new; until now I have always written apps that ran locally (usually in Java/C/Python).
I've seen some tutorials on PHP and Django, but I am not sure if I am going in the right direction.
Thanks in advance for all help :)
I would prefer to you meteorjs look at www.meteor.com the reason why im prefering this to you is that i was in the same position as you one month ago and i,m amaized with meteorjs. Also have a look at derbyjs. This frameworks are built on top of node.js it allows you to write only javascript end to end.
Look at install.meteor.com you will find a quick install bash file.
At the end you can do this with any of the languages you mentioned. Write with what you like the most.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
So I'm starting an android project, very new to it and to java.
But I have a knowledge in programming, especially VB.
I'm planning to create and app for certain users to see the data from a database. Is it possible without an internet connection? If not, will be a difficult task?
Where is the database? Is it online? When you say "Data Connection" do you mean Edge/4G/LTE or WiFi or Bluetooth? Your device has to connect at least once to the database in order to copy over the required data, and it depends on the database, but you might as well just copy it locally all over to the device itself.
Here are few starting points:
Internet
WiFi
Bluetooth
Database (SQL)
I also recommend getting this book for beginners (try Google-ing it, you know...) . It was very helpful for me to use it. In about a week (if you are fast like that) you can have a pretty solid experience and understanding.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I am new to java programming and i want to develop a server that can store the details of the clients to know which client has already made connection to it.
Please give me some good links and examples where i can learn how to design a server.
start with ServerSocket, Socket, and InetAddress. Those should let you get started and figure out all clients connected to your server, then compare the IP addresses to see if there's a duplicate. You should probably get started, then post some questions on that.
While MartyE's answer about server sockets is entirely viable in the right context, a much more common model in this day and age is to develop servers with web technologies. I'd recommend starting by looking at Java Servlets, and then perhaps frameworks like Restlet/Jersey if you don't need a web interface.
These would let you develop an HTTP + XML or HTTP + JSON server relatively painlessly.
Developing a server directly with sockets would give you more control and if you do a very good job of it, it would probably be more performant than a web-based solution, but it's more work and there are more ways you can trip yourself up on concurrent programming issues and socket handling. It's not what I'd recommend if you're new to programming.