View Full Version : Example: LuaSocket Simple Chat App
This example is a very simplistic chat program using the LuaSocket library to communicate via TCP/IP.
Skills Used: Basic TCP/IP Knowlege, System.LanInfo, Input Object, Paragraph Object, Page Timer, and the Lua Socket Library
TJ_Tigger
10-04-2005, 01:43 PM
That is pretty slick
Desmond
10-04-2005, 02:02 PM
That's a really cool application Worm! Lov'n it!
It has potential. I didn't have enough time at lunch to take it any further. I wanted to put some sort of acknowlegement in that the message was received back to the sender, but ran out of time.
Maybe another day :)
Corey
10-05-2005, 04:40 PM
You know what would be really nice would be an application which would allow someone to see my desktop in real time but only when I say so, and specifically only in the area where I place the capture rectangle. Ideally on port 80. So you could whiteboard ideas in realtime while talking to someone on the phone without having to adjust your firewall. I developed something quasi-similar last year just using a time elapsed screencap uploader but it wasn't liquid enough to use in real time meaningfully. :o
"Remote Whiteboard" would be a great freeware app too. Maybe I'll try to figure that out again sometime now that we have sockets. I have to get this guitar app help doc done before anything else though. Feh... :o
rhosk
11-11-2005, 08:49 AM
You know what would be really nice would be an application which would allow someone to see my desktop in real time but only when I say so, and specifically only in the area where I place the capture rectangle.
I know this is a month old and don't know if you're up and about, but this is possible right now. I have a live broadcast from my
desktop HERE (http://rphmedia.net/testing.htm)
I'll leave it up for a while (don't know what kind of server load this will be, but I'll be monitoring). Windows Media Encoder (free) can do this - screen, region, window, etc...And please, just check it out and don't stay on too long ;) or I'll terminate it :p
It's my time window, so you can see that it's actually transmitting in real time.
This could forever change the way we answer questions on the forum :D
rhosk
11-11-2005, 10:05 AM
OK, had about 14 hits. Gonna shut it down for now. If anyone wants info on how to do, let me know.
Intrigued
11-11-2005, 05:33 PM
I missed it! I had been at work for three and a half (31/2) hours already! :eek:
Corey
11-11-2005, 05:45 PM
I missed it also as well too. :o
rhosk
11-11-2005, 07:56 PM
OOKK, back on for a little while. I just don't know what this does to my server, let alone my processor, but it's up again (9:00 PM EST). I'll shut it back off at around 9:30 PM EST). I've received several PM's about this and I will get to you all. Maybe I'll just create a mini-tutorial and post it here. It's relatively easy to do :) I've realized that the delay is approximately 5-10 seconds, depending on Internet congestion/traffic, but I think it's still pretty neat. And I'm also pretty sure that you should be on a broadband connection to take advantage of this. Let me know differently if it works OK on a dial-up, but I doubt it. The bitrate I have it set at is "around" 150kpbs. The quality from here looks pretty good.
Click here (http://rphmedia.net/testing.htm)
Gotta better lookin' clock this time :D
rhosk
11-12-2005, 06:32 AM
(yawn) Back up for a little while.
yosik
11-12-2005, 10:54 AM
Ron,
The delay can be reduced changing the bffer values in Windows Media Encoder and, at the other end, changing the buffer values of the Windows Media Player.
Yossi
Intrigued
11-15-2005, 05:57 PM
Ah, good tip!
paul186
01-11-2006, 01:15 PM
hi mates, the proyect reports me an error when i send a message after a time and shut down, it said that the error is in ntdll.dll library. anyone can help me to resolve the bug?
The two LUA Socket projects I posted (this one and the Web Server) don't have much for any error detection at all. I would guess that the connection is timing out or something like that. Consider these apps as skeletons that need some meat put on them before they'll be very useful.
paul186
01-11-2006, 01:34 PM
thanks worm i think its conection timeout because it shut down after 2 minutes aprox. i`ll look it.
i post the error screenshot
also thanks to youre proyect Worm! im lovin it!:yes
TristanD
01-18-2007, 12:43 PM
I didn't have enough time at lunch to take it any further.
you've created this in lunch time??? Do you ever eat, sleep or breathe??
Intrigued
01-18-2007, 12:51 PM
Worm'inator is a lunchrific code'magnifcient and decent fellow.
If he has helped you in the past I would recommend giving back some monies ($10 or say a $20 spot) to his PayPal account. I have and it was something I did not even think twice about. He helped launch a couple of my programs, both of which made monies for me back a couple years or so ago.
So, thanks Worm for such.
Back on topic now for me.
;)
Some days lunch is longer than others :)
TristanD
01-20-2007, 05:29 AM
long lunches.. jou must work with the governement then XD :P
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.