Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Backstory:
I've been developing a game with LibGDX for the past two years, and I've seen it refactored more times than I remember.

I jumped on the iOS iKVM port as soon as it was released. But I've been struggling with it ever since in regards to cross platform networking. Kryonet will not port over to iOS unfortunately. So it's either I ditch Kryonet, or lose a large chunk of my target audience (iOS Users)

My question for you is:
I noticed LibGDX has cross platform classes ready for sockets and HTTP Requests, but no documentation exists for these sockets at all.

Has anyone used these sockets at all in the past, and does anyone know how they work?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

There is a bit of documentation on the Net package that gives a very brief overview: http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/Net.html The Net.HttpRequest doc covers the http setup in a bit more detail.

The http API is based on callbacks to listeners that handle results or failures. The raw Socket API provides stream-oriented access to connection data.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.