Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth > Re: Tcp-server ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 4 Topic 3992 of 4325
Post > Topic >>

Re: Tcp-server for GForth

by petter.egesund@[EMAIL PROTECTED] Apr 12, 2008 at 01:27 PM

On 12 Apr, 20:13, gavino <gavcom...@[EMAIL PROTECTED]
> wrote:
> On Apr 9, 11:48 am, petter.eges...@[EMAIL PROTECTED]
 wrote:
>
> > Hi,
>
> > I have written a tcp-server for GForth, as a getting-started-with-a-
> > real-Forth-project-lesson. It is non-blocking, multi-threaded and very
> > alpha. It is based on the bsd-sockets interface and needs a Unix-like
> > environment to run.
>
> > It is so far tested on Mac (Intel and PPC, Tiger) and Redhat 8.0
> > (Intel 32 bit). Comments on code/improvements are welcome.
>
> > More info onhttp://egesund.org/forth/forth.htm
>
> > Cheers,
>
> > Petter Egesund
>
> frigging awesome
> is it fast?

Well, at present it is fast, but it is also rather simple.

I am working on the next version, which will handle buffering of
incoming data as well as more advanced send-receive patterns.

I think the thread-layout of GForth fits a multithreaded server very
well. The server will keep a mapping between thread-id's and ****ts,
and send a wake-up call to the sleeping thread (which is waiting for
data) from the select loop when data is coming in. The plan is that
this will be very fast :-)

Petter
 




 4 Posts in Topic:
Tcp-server for GForth
petter.egesund@[EMAIL PRO  2008-04-09 11:48:24 
Re: Tcp-server for GForth
anton@[EMAIL PROTECTED]   2008-04-10 19:32:03 
Re: Tcp-server for GForth
gavino <gavcomedy@[EMA  2008-04-12 11:13:42 
Re: Tcp-server for GForth
petter.egesund@[EMAIL PRO  2008-04-12 13:27:16 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 17:13:13 CST 2008.