Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Converting socketConnection to HTTP Connection  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
I have developed an application using Socket connection. I have further port the application to Cingular devices. but the problem is on Cingular netwrok Socket doesnot work We have take permisiion from Cingular for doing so. We decided to change the code from SocketConnection to HTTP connection. Can anybody help me in this regard.
Any suggestion how shud I proceed, what are the changes that has to be made in serverside and the client side.
Thanks in advance
 
ranger
Posts: 17344
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well because you used the Generic Connection Framework, you just change the URL String in the getConnection method. Now I think it also depends on if there is any specific methods that you used on the SocketConnection object that is not in the HttpConnection object. On the serverside you now need to have a Servlet return the content that was used to be passed through the SocketConnection.

There might be more, but that is what I thought of.

Mark
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!