Re: winsocks again

new topic     » goto parent     » topic index » view thread      » older message » newer message

> ----- Original Message -----
> From: Bernie Ryan <bwryan at PCOM.NET>
> To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
> Sent: Thursday, December 02, 1999 8:50 AM
> Subject: Re: winsocks again
>
>
> On Wed, 1 Dec 1999 22:15:57 -0600, Kat <KSMiTH at PELL.NET> wrote:
>
> >I still can't get anything written in Eu to access the sockets, including
> >anything on Jesús Consuegra's page. Does anyone have a *WORKING* script
to
> >sit and read a port,, or to open and send to a port? For troubleshooting,
> >port 80 is probably best, because i can hit it with a web browser, or
serve
> >to it with my homemade http server ( not written in Eu ).
> >
> >Kat,
> >frustrated enough now to go to Delphi.
>
>
>
> What language did you use to write your homemade http server with ?

Mirc v5.51 .
Ok,, stop laughing! It multitasks, sending several files at once to several
IPs at once, thru the same port80,, and it's fast enough (at least
internally) to keep a T1 line full. And it can serve directory listings a la
ftp by http,, that is, http to the directory and it will send the file
listing for that directory, html formatted and alphabetized. And it can log
everything, some, or nothing about the http session. I also added, but
didn't yet turn on, flood control, ip blocking, and dns for each contact.

The three *big* problems with mirc is: it's _s_l_o_w_, as much as 200x
slower than Eu on some dos calls (prolly partly a windoze95 problem,
really),, and each script ( in the editor, at least ) is limited to 30K, and
the total list of variables and their contents is limited to 30K(!!!). But i
can do anything i want, a score of window types, any winsock coding i want,
DDE, DLL calling, client processes, file manipulation, *great* string
processing (and everything is a string unless you pass it to a math routine,
then it's automatically treated as a floating point),,,, everything but
serial/parallel port handling. All of the problems i have in scripting can
be solved by merging the ease of mirc and Eu into one language. My mirc bot
is 800K of mirc script, runs 3 mirc exe's for multitasking (they are
connected by dde, started by the parent as needed), has popup menus or
windows with radio buttons and scrolling lists and etc, and more than one
person on irc has had conversations with her in more than english, and
believed she was human. smile

One interesting part to mirc is the possibility of self-modifying programs,,
because you can output a file written as a script, and then execute it,,
either by loading it or by executing it right from the disk file. Or by
modifying an existing script and reloading it. I haven't yet pursued this
though. Oh,, and it has successfully been interfaced to Perl, but not by me.
Perl looks to me like a teletype blew up on the screen. But the perl
interfaced to Babelfish before i figured out the mirc socks commands,, mirc
is like Eu in documentation.

> Maybe you could rewrite it in Euphoria .

*IF* i could get socks scripting/programming i can understand. A "goto"
would make life lots easier, too. Eu holds the key to making a program
connectable to anything imaginable, the www, X10 modules, custom cards or
devices, etc,, imho, in a language *anyone* can use, not just professional
programmers. After looking at most of the include files written for Eu, i
conclude it helps to have a C/C++ programming background. sad

> Daniel Berstein wrote a CGI in Euphoria .

Ok,, that's not the direction i was headed tho.. i wrote a pretty good NLP
in turbo pascal (with a 125K word dictionary with
syntactic/semantic/domain/etc info and free-form html-type fields) , which i
am porting to Eu,, hoping to make it connectable, like a building block.
Brian sent me some Eu winsock script that actually works last nite, and i am
going to be studying it in detail for a few days. Thanks again, Brian! smile)

Kat,
with her own *different* ideas.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu