(home)

Learning About Arduino and VNC

Introduction

Implementation of a VNC server on an Arduino Ethernet board.

Code

Links

Project Log

( 28 March 2009 )

#if 1
Client Server::connected()
{
  accept();

  for (int sock = 0; sock < MAX_SOCK_NUM; sock++) {
    Client client(sock);
    if (EthernetClass::_server_port[sock] ==_port && 
        client.status() == SOCK_ESTABLISHED) {
        // XXX: don't always pick the lowest numbered socket.                   
        return client;
    }
  }

  return Client(255);
}
#endif
#if 1
  Client connected();
#endif
Mar 28 03:12:23 XXXXX Chicken of the VNC[24645]: Server reports Version RFB 003.003

code@rancidbacon.com