[Gambas-devel] First step for networking component

Daniel Campos danielcampos at ...45...
Thu Aug 28 04:17:42 CEST 2003


Hi!

 Well, i've finished the first little step for the
networking component. As threading is not a simple
thing into Gambas (as Benoît remarked in his 
previous message), I'll work first in the "not-threated"
part of this component (DnsClient, socket Client, server...)
and after all of this is finished, there will be a work about
asynchronous methods...

This little first work is a DNS client, this is the
implementation:

Class:

DnsClient


Properties:

HostName --> you can get/set the host name
HostIP   --> you can get/set the host IP

Methods:

GetHostName -->Gets the Host name from the IP stored in "HostIP"
               and sets the name into "HostName", or "" if failed

GetHostIP   -->Sets the Host IP from the name stored in "HostName"
               and sets the IP into "HostIP", or "" if failed


Regards,

-- 
Daniel Campos <danielcampos at ...45...>

(NOTE : tested on gambas-0.63 I think it will work OK with 0.64a)

net_0_0_1 --> source code of the component (I think MakeFile is OK),
to be placed at "lib" folder of gambas sources

DnsTest.tar.gz --> a sample of use for Gambas 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: net_0_0_1.tar.gz
Type: application/x-compressed-tar
Size: 5532 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20030828/05881272/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DnsTest.tar.gz
Type: application/x-compressed-tar
Size: 762 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20030828/05881272/attachment-0001.bin>


More information about the Devel mailing list