Opening a socket for listening

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
chris9610
Posts: 79
Joined: Fri Mar 20, 2009 4:38 pm

Opening a socket for listening

Post by chris9610 » Fri Dec 25, 2009 7:38 pm

I wanted to write a small server to share some data. So I was trying to find a listen function to wait for a connection request. Does one of these exist in runrev?

I wonder how you could write a P2P client to client without a listen function. Maybe there is an external available for this.

Any info is appreciated.

TIA
Developing with Windows XP & Revolution 4.5

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Opening a socket for listening

Post by FourthWorld » Fri Dec 25, 2009 8:30 pm

See the accept command in the Dictionary, and see it in action with the Chat example included in the Rev install.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

chris9610
Posts: 79
Joined: Fri Mar 20, 2009 4:38 pm

Re: Opening a socket for listening

Post by chris9610 » Sat Dec 26, 2009 1:37 am

Yes that seems to do the trick.

Thank you for the timely response.

Have a great holiday.
Developing with Windows XP & Revolution 4.5

Post Reply