Features | Community | Download | Full Version

Username
Password


Forgot your Login?
Register Now...


Search in Forum

Search in FAQs

Find User

    

  Register now!

If you have received an Instant.EXE webcode enter it here.

Network PlugIn



Network PlugIn


The Network PlugIn is a powerful add-on to Instant.EXE. It allows you to create TCP and UDP connections and handle them how ever you want. You should have acquired basic knowledge of Instant.EXE before diving into network programming. If you don't feel comfortable yet, take a look at the Instant.EXE beginner's guide!

Additionaly equipped with the Internet PlugIn you can easily create client/server applications to fit your needs or write your very own client or server for existing protocols. An entire webserver has been created with Instant.EXE, and nobody is going to stop you from writing your very own mail-client or the like.

| Download | Purchase | Internet PlugIn | Database PlugIn




Now for a small example. Networks consist of millions of computers. Most operating systems contain a command named 'ping' that you can use to check if a certain computer is running and responding. The Network PlugIn makes the 'ping'-command available within Instant.EXE (it does far more than that, of course). In fact, you can ping a host by simply querying the variable [iX.Network.Ping [HOSTNAME]]. If the host responds to the ping, a 1 is returned. A 0 is returned if the host is not reachable and a -1 signals that some error occured (e.g. the hostname could not be resolved).

Based on this one variable, we can write a small script that can ping a host the user enters:

*** Set up GUI and wait for event
Display Window 'Instant.EXE 3.0 Ping-Demo' (X=55, Y=37, W=50, H=50, Inner size, Max. enabled)
Display Control Label: 'Domainname or IP-Address:' (ID='lblUrl', X=5, Y=5, W=40, H=5)
Display Control Text box: (ID='inpAddress', X=5, Y=10, W=40, H=5)
Display Control 'Ping!' (ID='btnPing', X=5, Y=20, W=40, H=7)
Display Control Label: (ID='lblResult', X=5, Y=30, W=40, H=15, framed)
Wait infinite...

*** Try to ping the host and display result
:: iX_Display_Control(btnPing)
*** Host is reachable
If True: '[iX.Network.Ping [iX.Display.Control(inpAddress).Text]]=1'
Set in [iX.Display().Control(lblResult)]: 'Host [iX.Display().Control(lblAddress).Text] is available from this machine!'
*** Host is unreachable
Else if True: '[iX.Network.Ping [iX.Display().Control(inpAddress)]]=0'
Set in [iX.Display().Control(lblResult)]: 'Host [iX.Display().Control(inpAddress)] is not available from this machine!'
*** An error (probably DNS) occured
Else if True: '[iX.Network.Ping [iX.Display().Control(inpAddress)]]=-1'
Set in [iX.Display().Control(lblResult)]: 'Address [iX.Display().Control(inpAddress)] could not be resolved!'
End If
Return


**iX2019BC 1C20E0MQk+ KgkwDQoxCV Zlcnkgc2lt cGxlICdwaW 5nJy1kZW1v CTANCjEJPi oJMA0KMAkJ MA0KMQlTZX QgdXAgR1VJ IGFuZCB3YW l0IGZvciBl dmVudD4qCT ANCjM5CWlY MyBQaW5nLU RlbW98WCc1 NSdZJzM3J1 cnNTAnSCc1 MCdFQQkwDQ ozOAlEb21h aW5uYW1lIG 9yIElQLUFk ZHJlc3M6fE knbGJsVXJs J1gnNSdZJz UnVyc0MCdI JzUnTAkwDQ ozOAl8SSdp bnBBZGRyZX NzJ1gnNSdZ JzEwJ1cnND AnSCc1J1QJ MA0KMzgJUG luZyF8SSdi dG5QaW5nJ1 gnNSdZJzIw J1cnNDAnSC c3JwkwDQoz OAl8SSdsYm xSZXN1bHQn WCc1J1knMz AnVyc0MCdI JzE1J0xKCT ANCjMxCUUJ MA0KMAkJMA 0KMQlUcnkg dG8gcGluZy B0aGUgaG9z dCBhbmQgZG lzcGxheSBy ZXN1bHQ+Kg kwDQoxOQlp WF9EaXNwbG F5X0NvbnRy b2woYnRuUG luZykJMA0K MQlIb3N0IG lzIHJlYWNo YWJsZQkwDQ oyOQlbaVgu TmV0d29yay 5QaW5nIFtp WC5EaXNwbG F5LkNvbnRy b2woaW5wQW RkcmVzcyku VGV4dF1dPT F8CTANCjIy CWlYLkRpc3 BsYXkoKS5D b250cm9sKG xibFJlc3Vs dCk9SG9zdC BbaVguRGlz cGxheSgpLk NvbnRyb2wo bGJsQWRkcm VzcykuVGV4 dF0gaXMgYX ZhaWxhYmxl IGZyb20gdG hpcyBtYWNo aW5lIXwJMA 0KMQlIb3N0 IGlzIHVucm VhY2hhYmxl CTANCjE3CV tpWC5OZXR3 b3JrLlBpbm cgW2lYLkRp c3BsYXkoKS 5Db250cm9s KGlucEFkZH Jlc3MpXV09 MHwJMA0KMj IJaVguRGlz cGxheSgpLk NvbnRyb2wo bGJsUmVzdW x0KT1Ib3N0 IFtpWC5EaX NwbGF5KCku Q29udHJvbC hpbnBBZGRy ZXNzKV0gaX Mgbm90IGF2 YWlsYWJsZS Bmcm9tIHRo aXMgbWFjaG luZSF8CTAN CjEJQW4gZX Jyb3IgKHBy b2JhYmx5IE ROUykgb2Nj dXJlZAkwDQ oxNwlbaVgu TmV0d29yay 5QaW5nIFtp WC5EaXNwbG F5KCkuQ29u dHJvbChpbn BBZGRyZXNz KV1dPS0xfA kwDQoyMglp WC5EaXNwbG F5KCkuQ29u dHJvbChsYm xSZXN1bHQp PUFkZHJlc3 MgW2lYLkRp c3BsYXkoKS 5Db250cm9s KGlucEFkZH Jlc3MpXSBj b3VsZCBub3 QgYmUgcmVz b2x2ZWQhfA kwDQoxOAkJ MA0KNDUJCT ANCg===*




         Contact | Copyright © 2006 XELERATE Software, Inc. All rights reserved.