Page 1 of 1

Opening a socket for listening

Posted: Fri Dec 25, 2009 7:38 pm
by chris9610
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

Re: Opening a socket for listening

Posted: Fri Dec 25, 2009 8:30 pm
by FourthWorld
See the accept command in the Dictionary, and see it in action with the Chat example included in the Rev install.

Re: Opening a socket for listening

Posted: Sat Dec 26, 2009 1:37 am
by chris9610
Yes that seems to do the trick.

Thank you for the timely response.

Have a great holiday.