GXNet icon   Discuss about GXNet at Gurux Forum

Get started with GXNet

First you must set the component either to client, or server mode. This is done with setting the Boolean value of component's Server property.

Properties for Server mode

If the component is set to server mode, you must set at least the following properties:

  • Server property must be set to True
  • ServerPort
  • Protocol

Net server port is set by entering the port number of the receiver server, and protocol can be selected between UDP (default) and TCP/IP.

In addition you can set wheather all clients are accepted, and if not, get a notifaction when a client is accepted. You can also set maximum number of simultaneous clients connected, and utilize notifications, when a client connects, and disconnects.

The component has to be started as server, to receive data. This is done with StartServer method. Protocol and ServerPort must be set, before a server can be started. Also, notice that the server can not send any data, until a client is connected to it.

Properties for Client mode

If the component is set to client mode, you must set at least the following properties:

  • Server property must be set to False
  • HostName
  • HostPort
  • Protocol

The host port is set by entering the host port number, and the host name by entering the IP address of the host. The protocol can be selected between UDP (default) and TCP/IP.

All the obligatory properties are collected to be set in an easy-to-use dialog. That is a simple and secure way to assure all is set, when starting to use the component.

Built-in, resettable counters, for sent and received bytes, make it easy to follow up the Internet traffic. You can also set the component to send data synchronously or asynchronously.

Notice

When using GXGPRS component, always listen to OnError event, as all errors that occur, after the connection is established, are sent through it. Received data is received through OnReceived event.

Easy to use

Using the GuruxNet component with different development tools, such as Access, Delphi, Visual Basic, Java ,Visual C++, c# (csharp), VB.NET (Visual Basic.NET) and Managed C++ is very easy. With the component you get a Visual Basic sample that shows how to use the communication technique. Gurux communication medias have been made on the Windows API interface. Due to this, the components are very efficient and do not require external libraries or DLL files to operate.

Main benefits of GXNet

  • Open Source
  • Components are easy to use.
  • Requires no external libraries.
  • Components are small and efficient.
  • Supports Windows XP/Vista/7.
  • Works with all versions of Visual Basic and VB.NET.
  • Easy to use with VBScript and Java Script.