rest - How to start a HTTP server in android -


i new android development. want create tcp server in android can handle post or request coming client.

if see node js (following program):

var net = require('net');  var server = net.createserver(function(socket) {     socket.write('echo server\r\n');     enter code here      socket.pipe(socket); });  server.listen(1337, '127.0.0.1'); 

its easy start tcp server. need similar should able handle request coming rest client, post man or advance rest client or browser


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -