Thursday, July 9, 2009

Re: [BLUG] The Hub raw chat over telnet/netcat

Quoting Mark Krenz <mark@slugbug.org>:

> Well sorry folks, its just not working as well as I hoped. I need to
> get rid of the buffering issues. But it was a good experiment prior to
> the networking presentation.

It worked pretty well from over here. I saw what I was typing before
hitting enter. It didn't echo to me what I had said after I typed
enter, but I could tell by what people were saying to me that they
could see what I had typed. It told me everyone else's port number,
but didn't tell me what my own port number was, although I was able to
figure that out when people referred to me by number.

_______________________________________________
BLUG mailing list
BLUG@linuxfan.com
http://mailman.cs.indiana.edu/mailman/listinfo/blug

Re: [BLUG] The Hub raw chat over telnet/netcat

Well sorry folks, its just not working as well as I hoped. I need to
get rid of the buffering issues. But it was a good experiment prior to
the networking presentation.

On Thu, Jul 09, 2009 at 05:48:02PM GMT, Mark Krenz [mark@slugbug.org] said the following:
>
> There are some buffering issues. The code is from 2001 and it is
> fairly basic:
>
> https://lopsa.org/node/1351
>
> I modified it to show what port was talking. I may have screwed
> something up. I started it again with a larger buffer, maybe that will
> help. That was the first try though with multiple people on it.
>
> On Thu, Jul 09, 2009 at 05:45:31PM GMT, Steven Black [blacks@indiana.edu] said the following:
> > Weird thing. Doesn't seem to provide immediate feedback when you type.
> >
> > I keep 'tf' installed, so I tried connecting via that. (TinyFugue, a MU*
> > client) When I got no immediate feedback I gave up.
> >
> > --
> > Steven Black <blacks@indiana.edu> / KeyID: 8596FA8E
> > Fingerprint: 108C 089C EFA4 832C BF07 78C2 DE71 5433 8596 FA8E
> >
> > On Thu, Jul 09, 2009 at 05:28:42PM +0000, Mark Krenz wrote:
> > >
> > > telnet suso.suso.org 20202
> > >
> > > Or you can use netcat:
> > >
> > > nc suso.suso.org 20202
> > >
> > > Kinda interesting. Basically, very poor man's IRC. I modified a
> > > snippet of code called hub.c to do it, making it more efficient and to
> > > show port numbers (0-100) when someone talks.
> >
>
>
>
> > _______________________________________________
> > BLUG mailing list
> > BLUG@linuxfan.com
> > http://mailman.cs.indiana.edu/mailman/listinfo/blug
>
>
> --
> Mark Krenz
> Bloomington Linux Users Group
> http://www.bloomingtonlinux.org/
> _______________________________________________
> BLUG mailing list
> BLUG@linuxfan.com
> http://mailman.cs.indiana.edu/mailman/listinfo/blug
>

--
Mark Krenz
Bloomington Linux Users Group
http://www.bloomingtonlinux.org/
_______________________________________________
BLUG mailing list
BLUG@linuxfan.com
http://mailman.cs.indiana.edu/mailman/listinfo/blug

Re: [BLUG] The Hub raw chat over telnet/netcat

I read the page.

My understanding is that there are both block and line methods to
communicate via the Telnet protocol. Normal telnet sessions use
character mode, but MU*s and talkers normally use line-mode.

It looks like the hub was written with a character/block bias, and
you're trying to use it in a line-mode way.

What we're seeing is that it appears to be doing character-based
buffering of whole blocks with no regard to lines.

-- Steven Black

--
Steven Black <blacks@indiana.edu> / KeyID: 8596FA8E
Fingerprint: 108C 089C EFA4 832C BF07 78C2 DE71 5433 8596 FA8E

On Thu, Jul 09, 2009 at 05:48:02PM +0000, Mark Krenz wrote:
>
> There are some buffering issues. The code is from 2001 and it is
> fairly basic:
>
> https://lopsa.org/node/1351
>
> I modified it to show what port was talking. I may have screwed
> something up. I started it again with a larger buffer, maybe that will
> help. That was the first try though with multiple people on it.
>
> On Thu, Jul 09, 2009 at 05:45:31PM GMT, Steven Black [blacks@indiana.edu] said the following:
> > Weird thing. Doesn't seem to provide immediate feedback when you type.
> >
> > I keep 'tf' installed, so I tried connecting via that. (TinyFugue, a MU*
> > client) When I got no immediate feedback I gave up.
> >
> > --
> > Steven Black <blacks@indiana.edu> / KeyID: 8596FA8E
> > Fingerprint: 108C 089C EFA4 832C BF07 78C2 DE71 5433 8596 FA8E
> >
> > On Thu, Jul 09, 2009 at 05:28:42PM +0000, Mark Krenz wrote:
> > >
> > > telnet suso.suso.org 20202
> > >
> > > Or you can use netcat:
> > >
> > > nc suso.suso.org 20202
> > >
> > > Kinda interesting. Basically, very poor man's IRC. I modified a
> > > snippet of code called hub.c to do it, making it more efficient and to
> > > show port numbers (0-100) when someone talks.
> >
>
>
>
> > _______________________________________________
> > BLUG mailing list
> > BLUG@linuxfan.com
> > http://mailman.cs.indiana.edu/mailman/listinfo/blug
>
>
> --
> Mark Krenz
> Bloomington Linux Users Group
> http://www.bloomingtonlinux.org/
> _______________________________________________
> BLUG mailing list
> BLUG@linuxfan.com
> http://mailman.cs.indiana.edu/mailman/listinfo/blug

Re: [BLUG] The Hub raw chat over telnet/netcat

There are some buffering issues. The code is from 2001 and it is
fairly basic:

https://lopsa.org/node/1351

I modified it to show what port was talking. I may have screwed
something up. I started it again with a larger buffer, maybe that will
help. That was the first try though with multiple people on it.

On Thu, Jul 09, 2009 at 05:45:31PM GMT, Steven Black [blacks@indiana.edu] said the following:
> Weird thing. Doesn't seem to provide immediate feedback when you type.
>
> I keep 'tf' installed, so I tried connecting via that. (TinyFugue, a MU*
> client) When I got no immediate feedback I gave up.
>
> --
> Steven Black <blacks@indiana.edu> / KeyID: 8596FA8E
> Fingerprint: 108C 089C EFA4 832C BF07 78C2 DE71 5433 8596 FA8E
>
> On Thu, Jul 09, 2009 at 05:28:42PM +0000, Mark Krenz wrote:
> >
> > telnet suso.suso.org 20202
> >
> > Or you can use netcat:
> >
> > nc suso.suso.org 20202
> >
> > Kinda interesting. Basically, very poor man's IRC. I modified a
> > snippet of code called hub.c to do it, making it more efficient and to
> > show port numbers (0-100) when someone talks.
>

> _______________________________________________
> BLUG mailing list
> BLUG@linuxfan.com
> http://mailman.cs.indiana.edu/mailman/listinfo/blug


--
Mark Krenz
Bloomington Linux Users Group
http://www.bloomingtonlinux.org/
_______________________________________________
BLUG mailing list
BLUG@linuxfan.com
http://mailman.cs.indiana.edu/mailman/listinfo/blug

Re: [BLUG] The Hub raw chat over telnet/netcat

Weird thing. Doesn't seem to provide immediate feedback when you type.

I keep 'tf' installed, so I tried connecting via that. (TinyFugue, a MU*
client) When I got no immediate feedback I gave up.

--
Steven Black <blacks@indiana.edu> / KeyID: 8596FA8E
Fingerprint: 108C 089C EFA4 832C BF07 78C2 DE71 5433 8596 FA8E

On Thu, Jul 09, 2009 at 05:28:42PM +0000, Mark Krenz wrote:
>
> telnet suso.suso.org 20202
>
> Or you can use netcat:
>
> nc suso.suso.org 20202
>
> Kinda interesting. Basically, very poor man's IRC. I modified a
> snippet of code called hub.c to do it, making it more efficient and to
> show port numbers (0-100) when someone talks.

[BLUG] The Hub raw chat over telnet/netcat

telnet suso.suso.org 20202

Or you can use netcat:

nc suso.suso.org 20202

Kinda interesting. Basically, very poor man's IRC. I modified a
snippet of code called hub.c to do it, making it more efficient and to
show port numbers (0-100) when someone talks.

--
Mark Krenz
Bloomington Linux Users Group
http://www.bloomingtonlinux.org/
_______________________________________________
BLUG mailing list
BLUG@linuxfan.com
http://mailman.cs.indiana.edu/mailman/listinfo/blug