1. tcp4u

I swear, i am having the worst luck with http here. One program works on 
one site and won't work on another site, the 2nd program works on that site, 
but no others. Same with the 3rd program. Internet Explorer gets them all ok. 
Mirc gets them all ok. None of the demos in tcp4u work on any url. 
Get_file.exw says it cannot resolve the host address! If i dns it the url and 
give it the ip#, it says "can't reach the http server.", which tells me nothing.
Anyone have any ideas?

Kat

new topic     » topic index » view message » categorize

2. Re: tcp4u

Hi Kat,

I just tried "get_file.exw" (a demo program in euTcp4u package)
and yes it fails.  I have no idea and have started looking into it.

I know for a fact it used to work and don't know why all of a sudden it
would stop working.

Hopefully I find an answer tonight.

Ray Smith


----- Original Message -----
From: Kat <gertie at PELL.NET>
To: EUforum <EUforum at topica.com>
Sent: Friday, May 04, 2001 3:16 PM
Subject: tcp4u


>
>
> I swear, i am having the worst luck with http here. One program works on
> one site and won't work on another site, the 2nd program works on that
site,
> but no others. Same with the 3rd program. Internet Explorer gets them all
ok.
> Mirc gets them all ok. None of the demos in tcp4u work on any url.
> Get_file.exw says it cannot resolve the host address! If i dns it the url
and
> give it the ip#, it says "can't reach the http server.", which tells me
nothing.
> Anyone have any ideas?
>
> Kat
>
>
>
>

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

3. Re: tcp4u

Hi Kat,

I don't know why this is happening.
I installed Apache on my local PC and everything works fine locally.
But try and download files from a public web server and it fails.

I'm busy this weekend and I don't know when I'll be able to have another
look.

Does anyone know if DNS lookups would be different now from 6 months
ago ... on public web servers?????

Thanks,

Ray Smith

>
> I swear, i am having the worst luck with http here. One program works on
> one site and won't work on another site, the 2nd program works on that
site,
> but no others. Same with the 3rd program. Internet Explorer gets them all
ok.
> Mirc gets them all ok. None of the demos in tcp4u work on any url.
> Get_file.exw says it cannot resolve the host address! If i dns it the url
and
> give it the ip#, it says "can't reach the http server.", which tells me
nothing.
> Anyone have any ideas?
>
> Kat
>

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

4. Re: tcp4u

----- Original Message -----
From: Ray Smith <smithr at ix.net.au>>
> Hi Kat,
>
> I don't know why this is happening.
> I installed Apache on my local PC and everything works fine locally.
> But try and download files from a public web server and it fails.
>
> I'm busy this weekend and I don't know when I'll be able to have another
> look.
>
> Does anyone know if DNS lookups would be different now from 6 months
> ago ... on public web servers?????

Just to confirm, get_file won't work on any url I tried - "cannot resolve
host address"
it the error message.

 I was able to download a page from my local network server using the
numeric address (192.168.0.1:80) but not without the port (:80) attached.

Further experiments: adding :80 to a regular web address: for example
http://magnoliahall.com:80  gets me the page in question - but -
http://rapideuphoria.com:80 gets me a page from Pacific Tech touting their
web hosting services.??

Regards,
Irv





Regards,
Irv

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

5. Re: tcp4u

On 4 May 2001, at 10:27, Irv Mullins wrote:


> 
> 
> ----- Original Message -----
> From: Ray Smith <smithr at ix.net.au>>
> > Hi Kat,
> >
> > I don't know why this is happening.
> > I installed Apache on my local PC and everything works fine locally.
> > But try and download files from a public web server and it fails.
> >
> > I'm busy this weekend and I don't know when I'll be able to have another
> > look.
> >
> > Does anyone know if DNS lookups would be different now from 6 months
> > ago ... on public web servers?????
> 
> Just to confirm, get_file won't work on any url I tried - "cannot resolve
> host address"
> it the error message.
> 
>  I was able to download a page from my local network server using the
> numeric address (192.168.0.1:80) but not without the port (:80) attached.
> 
> Further experiments: adding :80 to a regular web address: for example
> http://magnoliahall.com:80  gets me the page in question - but -
> http://rapideuphoria.com:80 gets me a page from Pacific Tech touting their
> web hosting services.??

I tried specing the remote port too, 80 for regular pages and 2000 for 
intertrans.com services. 

Kat

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

6. Re: tcp4u

Er,, http4u_get_file doesn't return the webpage, it *only* saves it to the 
harddrive. Ray, is there an equally high level function to return the webpage 
to the calling program, or do i need to use the lower level socks commands? 
I am reading http://le-village.ifrance.com/freewares/man/tcp4u_p4.htm now.

Kat

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

7. Re: tcp4u

Mike, i thought others might want to know the progress on this, so i post to 
the listserv....

On 4 May 2001, at 8:49, Sabal Mike wrote:

> This is a MIME message. If you are reading this text, you may want to 
> consider changing to a mail reader or gateway that understands how to 
> properly handle MIME multipart messages.

Or, i may not wish to exec *any* display scripts?

> Content-Type: text/plain; charset=US-ASCII
> Content-Transfer-Encoding: quoted-printable
> Content-Disposition: inline
> 
> You seem to have an updated version of tcp4u that contains a few bugs.  =
> Attached is an (I guess) older version that has worked for me perfectly =
> fine.
> 
> The only other thing that may be wrong is setting the proxy address in =
> each program.  Tcp4u requires the proxy address to be used on each http =
> call, whereas IE and Netscape set it once and forget about it.

Mike, right out of the unzipped dir, it did the same thing, it said "cannot 
resolve host address". I don't wish it to use the proxy, and in IE, the default 
right now is not to use the proxy either, and even if it did, the proxy is set
to
"bypass". 

When i tried adding the ":80" to the yahoo addy, it got a page, titled:
<html><head><title>Yahoo! Australia &amp; NZ: Incorrect Host in 
URL</title><base href="http://au.rd.yahoo.com/"></head>

Apparently, they want us to use http://au.yahoo.com/ now? So i plugged in:
remote_file = "http://www.newadvent.org/cathen/01001a.htm" *without* the 
":80", and it got it ok, an url that EInetLib_full.ew keeps telling me times
out,
but which IE and mirc get fine. Web Shepard (modified to not have a window, 
so i may have installed bugs in it myself), is the one that crashes the 
computer after a few hundred pages. Then, in get_file.ew, i plugged in: 
remote_file = 
"http://www.tranexp.com:2000/InterTran?from=eng&to=poe&type=text&action
=Translate&text=word%20to%20translate"
to see how confused it would get, and it got it! Of course, i haven't run a few 
thousand urls thru it, like i have EInetLib_full.ew, but no doubt i will now! 
EInetLib_full.ew has been hitting pages with long urls like that for over a 
week now, no puter reboots, and runs fine, 300megabytes+ per day on a 
pitiful and buggy dialup. Ray, maybe the wrong beta code of tcp4u got 
posted on the RDS page? If i make tcp4u work for me, i can't sell code 
based around it, can i?

I don't understand why some programs work on some urls and not others. I 
am trying to learn from these programs that others wrote, and hope to write 
one that does work on all urls, but i don't know why these don't, and i guess 
answering that question is the first step, along with repeatedly testing them. 
It seems that there is an unlimited number of ways to get a webpage in 
windoze. 

I have a backlog of some 18,000 urls now, and someone with a .com emailed 
me about mining more for them.

Kat

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

8. Re: tcp4u

Hi Kat,

>Ray, maybe the wrong beta code of tcp4u got
> posted on the RDS page? If i make tcp4u work for me, i can't sell code
> based around it, can i?

As far as I know the code posted at RDS is the most recent and most bug
free.
I know for a fact I never used to have to specify the port (":80") at the
end of
an URL.  This baffles me completely.

Tcp4u is released under the LGPL license and the Euphoria wrapper (my part)
is released under the same license.
There is a text file called LGPL.TXT which contains all the details (which I
have not read completely!).
As far as I know you can use the library in your own commercial programs.
I quick look at LGPL.txt seems to say you need to make available object
files for your commercial programs so users canre-link the library if they
ever want to.  I don't know how this would be achieved with Euphoria.

If you gave paying users access to the source code you will have no
problems.
If you don't wan't to do this you will have to contact the author of Tcp4u
and
discuss a different license agreement.

Ray Smith

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

9. tcp4u

------=_NextPart_000_000F_01C0B7C2.C9B080A0
	charset="iso-8859-1"

Okay, first of all, EuSock is a bit weird. It has all of them Win32lib =
errors, so I won't mess with that right now.
I'm using tcp4u currently, but there seems to be a problem. I CAN'T GET =
IT TO CONNECT. ARG. It's driving me crazy. Right now, I'm pretty much =
copying and pasting statements, and modifying them as need be. I'm 100% =
sure the syntax is correct. So, I was scurininzing tcp4u_connect in =
manual.html, and something caught my eye. It said it connects to sockets =
doing a tcp4u_accept. Now, I really hope this isn't true, but does this =
only work with server specifically doing a tcp4u_accept, or all server =
just generally accepting connections?


Btw, for reference, here is the statement I'm using:
    sock_connect =3D tcp4u_connect(server_name, NULL, port)

No problem as far as I can tell. I have narrowed it down to this =
statement using trace.

May try my hand at libnet if this doesn't work. I really like tcp4u =
though.

------=_NextPart_000_000F_01C0B7C2.C9B080A0
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4611.1300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
now.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I'm using tcp4u currently, but there =
seems to be a=20
problem. I CAN'T GET IT TO CONNECT. ARG. It's driving me crazy. Right =
now, I'm=20
pretty much copying and pasting statements, and modifying them as need =
be. I'm=20
100% sure the syntax is correct. So, I was scurininzing tcp4u_connect in =

manual.html, and something caught my eye. It said it connects to sockets =
doing a=20
tcp4u_accept. Now, I really hope this isn't true, but does this only =
work with=20
server specifically doing a tcp4u_accept, or all server just generally =
accepting=20
connections?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Btw, for reference, here is the =
statement I'm=20
using:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; <FONT =
size=3D2>sock_connect =3D=20
tcp4u_connect(server_name, NULL, port)</FONT></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>No problem as far as I can tell. I have =
narrowed it=20
down to this statement using trace.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>May try my hand at libnet if this =
doesn't work. I=20
really like tcp4u though.</FONT></DIV>
------=_NextPart_000_000F_01C0B7C2.C9B080A0--

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

10. Re: tcp4u

------=_NextPart_000_0052_01C0B886.C35C2BE0
	charset="iso-8859-1"

Hi,

Doing a tcp4u_connect will attempt to open a socket on the specified=20
server, on the specified port.  A program needs to be running on that
server, waiting on the specified port for a connection to be achieved.

Using sockets always involves at least two programs, they don't =
necessarily
have to both be your programs.  You could for instance connect to a =
telnet=20
port on a Unix server, or a SMTP port on a mail server etc.

The example programs that come with tcp4u all happen to have a server
side and a client side.

It's a little difficult to determine what is wrong with the information =
you gave.

If you want to send me your program and a little information on what =
it's=20
supposed to do I'll gladly take a look at it.


Ray Smith


  I'm using tcp4u currently, but there seems to be a problem. I CAN'T =
GET IT TO CONNECT. ARG. It's driving me crazy. Right now, I'm pretty =
much copying and pasting statements, and modifying them as need be. I'm =
100% sure the syntax is correct. So, I was scurininzing tcp4u_connect in =
manual.html, and something caught my eye. It said it connects to sockets =
doing a tcp4u_accept. Now, I really hope this isn't true, but does this =
only work with server specifically doing a tcp4u_accept, or all server =
just generally accepting connections?
  =20
  =20
  Btw, for reference, here is the statement I'm using:
      sock_connect =3D tcp4u_connect(server_name, NULL, port)
  =20
  No problem as far as I can tell. I have narrowed it down to this =
statement using trace.
  =20
  May try my hand at libnet if this doesn't work. I really like tcp4u =
though.

------=_NextPart_000_0052_01C0B886.C35C2BE0
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
socket on the=20
specified </FONT></DIV>
<DIV><FONT face=3DArial>server, on the specified port.&nbsp; A program =
needs to be=20
running on that</FONT></DIV>
<DIV><FONT face=3DArial>server, waiting on the specified port for a =
connection to=20
be achieved.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial>Using sockets always involves at least two =
programs, they=20
don't necessarily</FONT></DIV>
<DIV><FONT face=3DArial>have to both be your programs.&nbsp; You could =
for=20
instance connect to a telnet </FONT></DIV>
<DIV><FONT face=3DArial>port on a Unix server, or a SMTP port on a mail =
server=20
etc.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial>The example programs that come with tcp4u all =
happen to=20
have a server</FONT></DIV>
<DIV><FONT face=3DArial>side and a client side.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial>It's a little difficult to determine what is =
wrong with=20
the information you gave.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial>If you want to send me =
your&nbsp;program&nbsp;and a little=20
information </FONT><FONT face=3DArial>on what it's </FONT></DIV>
<DIV><FONT face=3DArial>supposed to do I'll gladly take a look at =
it.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Ray Smith</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  <DIV><FONT face=3DArial size=3D2>I'm using tcp4u currently, but there =
seems to be=20
  a problem. I CAN'T GET IT TO CONNECT. ARG. It's driving me crazy. =
Right now,=20
  I'm pretty much copying and pasting statements, and modifying them as =
need be.=20
  I'm 100% sure the syntax is correct. So, I was scurininzing =
tcp4u_connect in=20
  manual.html, and something caught my eye. It said it connects to =
sockets doing=20
  a tcp4u_accept. Now, I really hope this isn't true, but does this only =
work=20
  with server specifically doing a tcp4u_accept, or all server just =
generally=20
  accepting connections?</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>Btw, for reference, here is the =
statement I'm=20
  using:</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp; <FONT =
size=3D2>sock_connect =3D=20
  tcp4u_connect(server_name, NULL, port)</FONT></FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>No problem as far as I can tell. I =
have narrowed=20
  it down to this statement using trace.</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>May try my hand at libnet if this =
doesn't work. I=20
  really like tcp4u though.</FONT></DIV></BLOCKQUOTE>


------=_NextPart_000_0052_01C0B886.C35C2BE0--

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

11. tcp4u

Reposting this as my original seems to have got lost!!
Hi All
    I'm trying to use TCP4U, I've got it all working both sending and
receiving data (on the backchannel) , the send fuction is fine, however if I
try receiving more than one byte at a time I get an error

sock_receive = tcp4u_receive(sock, 1, 1)
         if sock_receive[tcp4u_ret] = TCP4U_SUCCESS then
--   code snipped
         else
              appendText(IPDS_RE,sprintf( "\n tcp4u_receive error '%s'\n",
{tcp4u_error_string(sock_receive[tcp4u_ret])} ))

-- works fine but slowwwwly

But
sock_receive = tcp4u_receive(sock, 1000, 1)
       if sock_receive[tcp4u_ret] = TCP4U_SUCCESS then
--    code snipped
           else
          appendText(IPDS_RE,sprintf( "\n tcp4u_receive error '%s'\n",
{tcp4u_error_string(sock_receive[tcp4u_ret])} ))

-- gives me an error of 'Not a TCP4 return code'

    I've tried this on both W2K and XP, I do not need to do anything wth the
received data, I just want to clear the other devices buffer..
it's bound to be something I am doing wrong.... Has anyone got any
suggestions?

Pete.

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

12. tcp4u

Hi All
    I'm trying to use TCP4U, I've got it all working both sending and
receiving data (on the backchannel) , the send fuction is fine, however if I
try receiving more than one byte at a time I get an error

sock_receive = tcp4u_receive(sock, 1, 1)
         if sock_receive[tcp4u_ret] = TCP4U_SUCCESS then
--          code snipped
         else
              appendText(IPDS_RE,sprintf( "\n tcp4u_receive error '%s'\n",
{tcp4u_error_string(sock_receive[tcp4u_ret])} ))

-- works fine but slowwwwly

But
sock_receive = tcp4u_receive(sock, 1000, 1)
       if sock_receive[tcp4u_ret] = TCP4U_SUCCESS then
--          code snipped
           else
          appendText(IPDS_RE,sprintf( "\n tcp4u_receive error '%s'\n",
{tcp4u_error_string(sock_receive[tcp4u_ret])} ))

-- gives me an error of 'Not a TCP4 return code'

    I've tried this on both W2K and XP, I do not need to do anything wth the
received data, I just want to clear the other devices buffer..
it's bound to be something I am doing wrong.... Has anyone got any
suggestions?

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

Search



Quick Links

User menu

Not signed in.

Misc Menu