Menu

Network

Majenko Technologies

This is the core network stack control object. It is within here that most of the grunt work and control logic is performed.

All the other low-level object types get added in to this object through specific calls. All the socket types have an addPort method, and network interfaces have an addInterface method. See the socket and ethernet card objects for examples on using those.

The network object also has a number of control interfaces and utilities:

Network.setDefaultRouter(ipAddress);

This sets the IP address of the network default gateway. This is usually the IP address of your internet router.

The ipAddress parameter is an unsigned long type and an IP address can be crafted using the utility function quad2ip(a,b,c,d):

Network.setDefaultRouter(quad2ip(192,168,0,1));

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.