WebRTC Java Server? [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Is there a way to make a simple Java server be able to connect with a WebRTC browser page?
I'm asking because I have a Java server that talks to a Websocket browser page and it'd sure be nice to have it capable of making a second WebRTC connection for fast and unreliable data transfers.
I'm having a hard time finding WebRTC Java server code.
Edit: It appears the status of this question is applied to the ones who applied it. As they apparently have minimal knowledge of my question.

It is possible. There is a couple of examples in the webrtc source code base (https://code.google.com/p/webrtc/). Look under talk/examples.
However unreliable data channels are currently being deprecated and swapped for reliable ones. Google Chrome will probably drop unreliable (UDP based) data channels altogether in the near feature and support only reliable (SCTP based). More to the point unreliable data channels are currently bandwidth limited (about 30Kbits/s). I don't know what you are doing but I am pretty sure that websockets (TCP based) are fast enough and using WebRTC will just be a huge time investment for little to none benefit.

Related

Do i need to encrypt the data and connection between Front and Back on the same server? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
We have Front-End application(site) that is already exposed to the world with HTTPS+SSL certificate. So here we are ok.
When Front-End Site gets requests , then it sends to back-up application (Written on Java), that is sitting on the same server.
Do i need also to encrypt with SSL the data between the Front-End and Back-End that are actually on the same server?
Also, connection should be done with https or http between them? Or because we want to make it secure then it's better to do with https between all components in the chain
I think your problem could be abstracted into following questions:
Is your server secure ?
Is there any chance, in the future, you will scale up your application?
So, let's think about answers to these questions together.
Is your server secure?
If you have done things the way it should be, your server is supposed to be well-protected. If so, you don't need to secure the communication between fron and back end.
Will you scale up your application in the future ?
Hopefully you will have a lot of traffic for your application and will consider scaling up your application in the future. But do you really model the future right now? Possibly not.
Don't fix anything that ain't broken.
So, IMHO, you don't need to do anything at the moment.
EDIT:
There seems to be confusions around the terminologies used in the question. I assumed more than 1 micro-applications, one facing outward (front-end), and another one which is handling back end (back up??) operations. If you are confused FRONT-END with BACK-END as luk2302 suggested, this answer is not relevant at all.

How can I host a LAN server on an Android device? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I want to know if there is a way to host a LAN server on Android without using a third party library.
I want the solution to work without rooting the device.
I want to know if there is a way to host a LAN server on Android without using a third party library.
It is possible. You have to use Sockets and ServerSockets, Object[Input/Output]Stream(or a different way to send data). Basically design a server.
Here is an SO post on creating a server
Here is the Java documentation on servers
You can use third party libraries to make servers too(see the first link), and sometimes that may be easier.

Creating a server side for android application [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm currently making an android application that will be used by a certain number of clients. Each client will have an account and will access information from the server. This information is stored in a DB.
My question is what is the best way to create a server side that will, later on, be compatible with other platforms (iOS, Windows, etc.)?
Can I use sockets on different platforms? Or should I create a Web Service?
I found a certain tutorial that I think is explaining a similar thing, but I think it demands a certain amount of knowledge, and I'm totally new to this, and haven't learned this at faculty (I'm good with sockets but I never had much confidence in them, and the idea of sending HTTP requests to the server looks much better).
Can someone divert me to a tutorial or lectures of how this is supposed to be done?
Connection between Android and a server would most easily be done with http requests.
There are several libraries available who make this easy like Retrofit.
For server-side applications you can take a look at Jersey in combination with a tomcat server.
There are of course many applications who can do these... so it comes down to a matter of preference.
There are many web development frameworks that works on many platforms such as spring, vertx, play and many others to name. You can you create rest like api for this purpose. Give all the low level works to the framework. You should not worry about low level details as most off them are handled by frameworks today.

a single database for 2 apps: desktop and android [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I've searched throw your many posts but I didn't find the answer to my question.
I want to make a project which involves two applications: a desktop one written in java, on the pc and the other in android that will be on a mobile phone. I would like to connect both of the applications to a single database but I don't know were to start it from and how to do it.
Could you give me an example or a hint please? Thank you very much for your time.
I think you want to run your desktop in different PC than the database, if yes, than on the database site you can do a minimal PHP which will be the server with database connection. You can find many php + mysql free hosting. Many php examples are how to receive a GET and a POST parameters, connect to database and return results. Use that server side for serving both mobiles and desktops. So the Communication is via HTTP POST and HTTP GET. Distributed applications like this are used in commercial environments and in school usually you can get a little better note. Google it for keywords implementations. Good luck.

Work with network in swing application [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am developing swing application that will communicate with server via
web sockets.
I plan to create separate threads for sending/receiving packets, connecting
and disconnecting operations. Also for packet processing i plan to use queue.
Could you suggest, is this correct network layer design?
Or there is exist something better?
Thanks.
It is hard to say something on this subject, it really depends.
If you have experience with Rich Internet Applications you can design your application in a similar way. So, you could have a web service running SOAP and you Swing application exchanging data via asynchronous HTTP calls (similar to Ajax's approach).
Also, I would highly suggest designing some sort of MVC before getting started where the View would be your Swing components, the Controller would handle business rules/validations/threads, and the Model handles the communication between your desktop app and web server.
Finally, I would discourage queueing packages. I did it in the past and regretted because it became too complex and convoluted. In my case, I realized that if something goes wrong I would just throw Exception and handle the error. So, in some cases it would result in a error message on the user interface where the user could take contingency actions; in other cases, the application would try that same operation again latter.
I hope this description can help you somehow.
Cheers,

Categories