1. eunet mods

I am adding an outgoing header hander to eunet. I may not finish tonite, but i
am close to it now. It has some generic defaults, a way to modify them, and of
course you can list them. It builds from the record to the http format and sends
them.

Kat

new topic     » topic index » view message » categorize

2. Re: eunet mods

I have  mod'd my copy of eunet to get this url, 

http://en.wikipedia.org/wiki/USNS_General_Harry_Taylor_(T-AP-145)

and

http://en.wikipedia.org/wiki/USNS%5FGeneral%5FHarry%5FTaylor%5F%28T%2DAP%2D145%29

which eunet could not do this morning. I added several functions, using overly
long names:

sequence sendheader = {} -- as opposed to receiveheader
defaultsetsendheader = set a default header
setsendheaderline = sets a header line you ask for by name
getsendheaderline = returns a header line you ask for by name
formatsendheader = makes the header record presentable to eunet_send()
urlencoding = not done yet -- convert non-alphanumeric to %hexhex
pagedeflate = not done yet, un-gzip(?) -- any takers?

I didn't do POST yet, gnite!

All subject to change by Michael Sabal, if he's here? How to get this file out
to you, i don't know yet.

Kat

new topic     » goto parent     » topic index » view message » categorize

3. Re: eunet mods

Kat wrote:
> 
> I have  mod'd my copy of eunet to get this url, 
> 
> All subject to change by Michael Sabal, if he's here? How to get this file out
> to you, i don't know yet.
> 
> Kat

Wow, that's awesome!  It probably would have taken me a couple weeks to get 
everything done and tested, squeezing it in between the work I get paid for :).

If you have, or were able to sign up for a SourceForge account, and had SVN
installed, I could add you to the project so you could commit code directly.
Otherwise, you could email me your modded version, or submit the modded .e 
to recent user contributions.  My addy is m underscore sabal ta yahoo tod com.

Thanks. 

Michael Sabal

new topic     » goto parent     » topic index » view message » categorize

4. eunet mods

Eunet now has (not released yet):

data = eunet_get_recvheader("set-cookie")
puts(1,data[2]&"\n") -- puts the cookie value

data = eunet_get_recvheader(3)
puts(1,data[1]&" "&data[2]&"\n")
-- in this case, puts the headername and server software name

What else does it need (keeping in mind it's a web interface, not a webpage
manager, not an irc bot, and not a firewall)?

Kat

new topic     » goto parent     » topic index » view message » categorize

5. Re: eunet mods

Kat wrote:
> 
> What else does it need (keeping in mind it's a web interface, not a webpage
> manager, not an irc bot, and not a firewall)?
> 

Great! One problem I am having with it is eu with the eunet_recv(). If I pass
MSG_DONTWAIT to it, then it returns right away and with no data received, in
Linux, it returns: {11, ""} then when data is received, it returns "Data". So, in
my check on Linux, I have to check result[1] != 11 (we have data).

Now on windows, it returns a different code. I think it was 10025, but I am not
certain. So, on windows I have to perform a different check. It should probably
define it's own error codes and map in the cross-platform functions, to eunet's
errors so programmers can simply: result[1] = NO_DATA and it will work on Windows
or Linux/FreeBSD.

i.e. If it's cross platform, it should work on either platform w/no changes or
special handling on either platform.

--
Jeremy Cowgar
http://jeremy.cowgar.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu