1. winsocks again
- Posted by Kat <KSMiTH at PELL.NET> Dec 01, 1999
- 402 views
- Last edited Dec 02, 1999
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.
2. Re: winsocks again
- Posted by Bernie Ryan <bwryan at PCOM.NET> Dec 02, 1999
- 409 views
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=FAs Consuegra's page. Does anyone have a *WORKING* script t= o >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 ? Maybe you could rewrite it in Euphoria . Daniel Berstein wrote a CGI in Euphoria .
3. Re: winsocks again
- Posted by Kat <KSMiTH at PELL.NET> Dec 02, 1999
- 387 views
> ----- 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. 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. > 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! ) Kat, with her own *different* ideas.
4. Re: winsocks again
- Posted by Kat <KSMiTH at PELL.NET> Dec 02, 1999
- 377 views
----- Original Message ----- From: Jon Banquer <jbtech at mpinet.net> To: <KSMiTH at PELL.NET> Sent: Thursday, December 02, 1999 7:50 AM Subject: Re: winsocks again > > frustrated enough now to go to Delphi > > What advantage do you see Euphoria having > over Delphi ? I see none...except price. No types, if that's what i want for a variable. Re-sizeable data, no pre-determined variable sizes or field counts. Garbage collection. No OOP required. An active listserv (i can't get to "newsgroups"). The smart people on this listserv. Price. Size. I can include data as to "inheritance" or "descendants" in *my* code, making it possible to have intrinsic overriding and multiple inheritances/descendants in *my* scripting hierarchies. (Btw, mirc has all this too, but it's not made to use in a large application.) Three OSs supported, so if i make something worth selling, i have a wider audience. Disadvantages to Eu?: No truely easy string arrays. Sequences are great, mostly, but don't lend themselves to multi-dimensional arrays very well, imo. For instance, even tho you can subscript a seq, you can't grab the error and resume if you access a out-of-bounds subscript. (Mirc returns $null if you access something not there, it's easy to test for.) They don't need to take up any memory till you put something in them,, but then they take up 32bits for an 8bit ascii char (not considering Chinese chars here). No "goto" command. Until Brian sent me the winsock script last nite, the socks programming in Eu just didn't make sense to me. It may still not make sense to me, i haven't studied it yet,, but it works now. Kat, not giving up on Eu just yet....