Indigo Rose Software
  #1  
Old 08-26-2005
Brett's Avatar
Brett Brett is offline
Indigo Rose Staff Member
 
Join Date: Jan 2000
Posts: 2,001
Post Article: Using LuaSockets

See the attached document for full details.

Quote:
From http://www.cs.princeton.edu/~diego/p...nal/luasocket/

"LuaSocket is a Lua extension library that is composed by two parts: a C core that provides support for the TCP and UDP transport layers, and a set of Lua modules that add support for functionality commonly needed by applications that deal with the Internet."

In other words, the LuaSocket library allows you to do both low-level and high-level TCP and UDP communication from AutoPlay Media Studio 6.0 projects.
Attached Files
File Type: pdf How to Use LuaSockets from AutoPlay Media Studio 6.pdf (83.5 KB, 940 views)
Reply With Quote
  #2  
Old 08-26-2005
TJ_Tigger's Avatar
TJ_Tigger TJ_Tigger is offline
Indigo Rose Customer
 
Join Date: Sep 2002
Location: Sol 3
Posts: 3,188
... ...
__________________
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
Reply With Quote
  #3  
Old 08-26-2005
Dermot Dermot is offline
Indigo Rose Customer
 
Join Date: Apr 2004
Location: Vancouver, Canada
Posts: 1,520
Wow! that's great!

Thanks Brett, that' sure to come in handy.
__________________
Dermot

AMS Add-ons - xDialog.com

A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine.
Reply With Quote
  #4  
Old 08-26-2005
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,059
Brett. . . what happen to the bar? (as in, "raising the bar"). We are way beyound that!

Thanks for sharing! It might be another day in the code matrix for you... but it's a code maze for the rest of us (if I may be so bold).

__________________
Intrigued
www.amsuser.com
Reply With Quote
  #5  
Old 08-26-2005
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
Too cool! Simply too cool!
Reply With Quote
  #6  
Old 08-26-2005
Eagle Eagle is offline
Indigo Rose Customer
 
Join Date: Mar 2005
Location: WA 'wait a while' - Australia
Posts: 827
Ditto * 4 ...
Reply With Quote
  #7  
Old 08-26-2005
TJ_Tigger's Avatar
TJ_Tigger TJ_Tigger is offline
Indigo Rose Customer
 
Join Date: Sep 2002
Location: Sol 3
Posts: 3,188
Does this mean that there will be inter-app socket communications?
__________________
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
Reply With Quote
  #8  
Old 08-26-2005
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,059
Brett, I noticed this in your documentation(again, thanks for sharing), FWIW:

package.cpath=_SourceFolder.."\\AutoPlay\\Scripts\ \?.dll;"

It looks like the semi-colon needs to be at the end?
__________________
Intrigued
www.amsuser.com
Reply With Quote
  #9  
Old 08-27-2005
Dermot Dermot is offline
Indigo Rose Customer
 
Join Date: Apr 2004
Location: Vancouver, Canada
Posts: 1,520
Quote:
Originally Posted by Intrigued
Brett, I noticed this in your documentation(again, thanks for sharing), FWIW:

package.cpath=_SourceFolder.."\\AutoPlay\\Scripts\ \?.dll;"

It looks like the semi-colon needs to be at the end?
I copied and pasted Brett's code and it worked fine. Seems to work either way.
__________________
Dermot

AMS Add-ons - xDialog.com

A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine.
Reply With Quote
  #10  
Old 08-27-2005
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,059
Ya, just looking for clarification. (hence the question mark at the end).

__________________
Intrigued
www.amsuser.com
Reply With Quote
  #11  
Old 08-27-2005
Brett's Avatar
Brett Brett is offline
Indigo Rose Staff Member
 
Join Date: Jan 2000
Posts: 2,001
Actually the internal semi-colon is by design. That path allows for multiple search locations separated by semi-colons (even though I only specified one so it will work either way).
Reply With Quote
  #12  
Old 08-27-2005
Brett's Avatar
Brett Brett is offline
Indigo Rose Staff Member
 
Join Date: Jan 2000
Posts: 2,001
Quote:
Originally Posted by TJ_Tigger
Does this mean that there will be inter-app socket communications?
As far as I can tell that should be possible. The LuaSocket library allows you to open sockets and send/recieve on them.

<Jack Bauer>Chloe, open up a socket! There's no time Chloe, I need that socket open NOW!</Jack Bauer>
Reply With Quote
  #13  
Old 08-27-2005
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,059
Quote:
Originally Posted by Brett
Actually the internal semi-colon is by design. That path allows for multiple search locations separated by semi-colons (even though I only specified one so it will work either way).
Ah, I gotcha. I thought I had seen you post something like this before and I was wondering....
__________________
Intrigued
www.amsuser.com
Reply With Quote
  #14  
Old 10-04-2005
johnperry9 johnperry9 is offline
Forum Member
 
Join Date: Sep 2005
Posts: 12
Lightbulb LuaSocket Trouble

Hi Guys,

Thank you guys for all of your great help. I am trying so hard to write two programs that will communicate with each other. The server where you can click on a button and it will put text in a text box on the client, also it would play a simple wav. This is a sort of "notification" software, where the server can send a preset message to the client over a network. If anyone knows how to use luasocket, or has any ideas, please please let me know. Thanks again.
Reply With Quote
  #15  
Old 02-01-2006
bule's Avatar
bule bule is offline
Indigo Rose Customer
 
Join Date: May 2005
Posts: 1,147
Quote:
Originally Posted by Brett
<Jack Bauer>Chloe, open up a socket! There's no time Chloe, I need that socket open NOW!</Jack Bauer>
You almost killed me with this one...
__________________
Never know what life is gonna throw at you.
(Based on a true story.)
Reply With Quote
Reply

Tags
http, sockets

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
powerBASIC & Word COM automation Intrigued Developer's Den 3 02-11-2005 10:13 PM
KB: Making a Document Browser Desmond AutoPlay Media Studio 5.0 Examples 9 01-14-2005 07:02 AM
Opening a Microsoft Word Document Desmond AutoPlay Media Studio 5.0 Examples 0 09-26-2003 02:46 PM
Opening an Adobe Acrobat PDF Document Desmond AutoPlay Media Studio 5.0 Examples 0 09-26-2003 02:30 PM
Open a Document Using Specified Exe photoworks AutoPlay Menu Studio 3.0 1 04-20-2001 09:17 AM


All times are GMT -6. The time now is 06:33 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software