<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Network</title><link>https://sourceforge.net/p/chipkitnetwork/wiki/Network/</link><description>Recent changes to Network</description><atom:link href="https://sourceforge.net/p/chipkitnetwork/wiki/Network/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 07 Jul 2012 14:06:30 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/chipkitnetwork/wiki/Network/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage Network modified by Majenko Technologies</title><link>https://sourceforge.net/p/chipkitnetwork/wiki/Network/</link><description>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));

</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Majenko Technologies</dc:creator><pubDate>Sat, 07 Jul 2012 14:06:30 -0000</pubDate><guid>https://sourceforge.netfc998337b5b3cb9b7afffc8cc1b106a5a5b54b7f</guid></item></channel></rss>