Re: TCP/IP
- Posted by Ray Smith <smithr at ix.net.au> Mar 26, 2001
- 340 views
------=_NextPart_000_00B5_01C0B63D.C1DCB0A0 charset="iso-8859-1" Hi, As far as I know Tcp4u has automatic DNS lookup capabilities. As far as I remember euLibnet has no DNS capabilities. I have tested doing web page downloads with euTcp4u for an url like: http://www.yahoo.com.au. I think one of the demos does this. I haven't tested the basic TCP/IP sends and receives to domain names=20 but would expect it to work. To obtain your IP address look at "tcp4u_get_local_id" in the doco. >From memory (my memory is getting worse as the years go bye!) there is a = routine in the base Tcp4u library for getting the remote IP address but = I couldn't=20 get it work with the Euphoria wrapper. If this is what your after I could look at it again and see if I can = figure it out=20 now. Ray Smith. ----- Original Message -----=20 From: breenr at iglou.com=20 To: EUforum=20 Sent: Monday, March 26, 2001 9:50 AM Subject: TCP/IP I'm new to this list. So, I'd like to start by saying hey. =20 Now that that's over with (and boy, I'm tired) let me get to my = question. I was gonna write an IRC client, and was looking at these two = tcp/ip libraries on the the user contributions page, tcp4u and libnet. = But to use these, I have to have IP addresses, and there doesn't appear = a way to do DNS lookups. I certainly don't want to make my client users = look up the IP addresses on their own, so I was wondering if anyone new = a way around this. =20 And also while I'm writing this, which library do you suggest? ------=_NextPart_000_00B5_01C0B63D.C1DCB0A0 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> lookup=20 capabilities.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>As far as I remember euLibnet has = no DNS=20 capabilities.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial>I have tested doing web page downloads with = euTcp4u=20 for an url like:</FONT></DIV> <DIV><FONT face=3DArial><A=20 href=3D"http://www.yahoo.com.au">http://www.yahoo.com.au</A></FONT><FONT = face=3DArial size=3D2>. I think one of the demos does = this.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial>I haven't tested the basic TCP/IP sends and = receives=20 to domain names </FONT></DIV> <DIV><FONT face=3DArial>but would expect it to work.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>To obtain your IP address look at=20 "tcp4u_get_local_id" in the doco.<BR></FONT></DIV> <DIV><FONT face=3DArial size=3D2>From memory (my memory is getting worse = as the=20 years go bye!) there is a </FONT></DIV> <DIV><FONT face=3DArial size=3D2>routine in the base Tcp4u library = </FONT><FONT=20 face=3DArial>for getting the remote IP address but I couldn't = </FONT></DIV> <DIV><FONT face=3DArial>get it work with the Euphoria = wrapper.</FONT></DIV> <DIV><FONT face=3DArial>If this is what your after I could look at it = again and=20 see if I can figure it out </FONT></DIV> <DIV><FONT face=3DArial>now.</FONT></DIV> <DIV> </DIV> <DIV><FONT face=3DArial size=3D2>Ray Smith.</FONT></DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV><FONT color=3D#800080 face=3DArial><U></U></FONT> </DIV> <BLOCKQUOTE=20 style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: = 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px"> <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV> <DIV=20 style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: = black"><B>From:</B>=20 <A href=3D"mailto:breenr at iglou.com" = title=3Dbreenr at iglou.com>breenr at iglou.com</A>=20 </DIV> <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A = href=3D"mailto:EUforum at topica.com"=20 title=3DEUforum at topica.com>EUforum</A> </DIV> <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Monday, March 26, 2001 = 9:50=20 AM</DIV> <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> TCP/IP</DIV> <DIV><BR></DIV><PRE> >>>>> The Euphoria = Mailing List <<<<< <A = ick.topica.com/aaaa4Nb1dd66b2lr4Vb/rebootmypc</A> <DIV><FONT face=3DArial size=3D2>Now that that's over with (and boy, = I'm tired)=20 let me get to my question. I was gonna write an IRC client, and was = looking at=20 these two tcp/ip libraries on the the user contributions page, tcp4u = and=20 libnet. But to use these, I have to have IP addresses, and there = doesn't=20 appear a way to do DNS lookups. I certainly don't want to make my = client users=20 look up the IP addresses on their own, so I was wondering if anyone = new a way=20 around this.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>And also while I'm writing this, = which library do=20 you = <A = r/tag01</A></PRE></BLOCKQUOTE> ------=_NextPart_000_00B5_01C0B63D.C1DCB0A0--