Quick network prep question

Alright, I post enough in other threads, but network support is really where I know next to nothing.

Let’s say I wanted to connect to an existing game; say, an MMO. I know the address and port for the login server. I have credentials to supply for test purposes.

Is there a standard way to actually make that communication?

Maybe like this…?

local function networkListener(event) --execute differently based on the event result end local response network.download(response, "GET", networkListener)

I guess from the tutorials I’m only seeing how you would grab and save an external file to device, but nothing about talking to a server or pulling data and saving it to variables instead.

Not expecting anything terribly complex here; I’m just mystified how I would, say, open a connection, feed some credentials and then (eventually) query for data without creating my own file data farm.

Any demystification appreciated. :slight_smile:
[import]uid: 41884 topic_id: 26196 reply_id: 326196[/import]

Look at the lua sockets API. [import]uid: 44647 topic_id: 26196 reply_id: 106252[/import]

toby2, that is both exactly what I was looking for (duh, sockets! Argh brain hurt!) and exactly what I feared (painful original LUA documentation with no sight of corona-esque friendliness to be found) :slight_smile:

I guess I’ll stare at this for awhile… [import]uid: 41884 topic_id: 26196 reply_id: 106537[/import]

EDIT: Only replied once, seeing multiple replies, I guess Corona forums having some morning issues… [import]uid: 41884 topic_id: 26196 reply_id: 106538[/import]

I guess I’m going to have to give up on this one, unless anyone knows some socket tutorials out there?

It looks like a framework-within-a-framework, and getting even a command line statement to print about connection status seems impossible without that knowledge ahead of time. The lua socket documentation is interesting, but functionally useless to laymen. [import]uid: 41884 topic_id: 26196 reply_id: 106636[/import]