Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: XBeeLib mbed HvZAlphaNumLib HvZServerLib
Revision 1:d1b5cd8b2c18, committed 2010-12-12
- Comitter:
- etherealflaim
- Date:
- Sun Dec 12 19:38:47 2010 +0000
- Parent:
- 0:9cdba0589ba2
- Commit message:
Changed in this revision
| lib/udp.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/lib/udp.cpp Sun Dec 12 19:35:00 2010 +0000
+++ b/lib/udp.cpp Sun Dec 12 19:38:47 2010 +0000
@@ -7,7 +7,7 @@
UDP::UDP(iHvZ *game, PinName eth_in)
: m_game(game), m_eth(eth_in), m_eth_int(eth_in),
m_pNetUdpSocket(NULL), m_pCbItem(NULL), m_pCbMeth(NULL), m_pCb(NULL),
- conn(IpAddr(192,168,1,2),IpAddr(255,255,255,0), IpAddr(), IpAddr())
+ //conn(IpAddr(192,168,1,2),IpAddr(255,255,255,0), IpAddr(), IpAddr())
{
// Set the game ID
char mac[8];
@@ -70,8 +70,8 @@
Serial usb(USBTX,USBRX);
usb.printf("Checking for Ethernet connection...\r\n");
- //Host game_server(IpAddr(128, 61, 89, 71), HVZ_PORT, HVZ_HOSTNAME);
- Host game_server(IpAddr(192, 168, 1, 1), HVZ_PORT, HVZ_HOSTNAME);
+ Host game_server(IpAddr(128, 61, 89, 71), HVZ_PORT, HVZ_HOSTNAME);
+ //Host game_server(IpAddr(192, 168, 1, 1), HVZ_PORT, HVZ_HOSTNAME);
/* Function to call upon Server response */
setOnEvent(this, &UDP::read);
@@ -171,8 +171,8 @@
void UDP::read(UDPSocketEvent e)
{
- //Host host(IpAddr(128, 61, 89, 71), HVZ_PORT, HVZ_HOSTNAME);
- Host host(IpAddr(192, 168, 1, 1), HVZ_PORT, HVZ_HOSTNAME);
+ Host host(IpAddr(128, 61, 89, 71), HVZ_PORT, HVZ_HOSTNAME);
+ //Host host(IpAddr(192, 168, 1, 1), HVZ_PORT, HVZ_HOSTNAME);
if ( e == UDPSOCKET_READABLE )
{