Code Search for Developers
 
 
  

PacketUdp.h from Make Controller at Krugle


Show PacketUdp.h syntax highlighted

/****************************************************************************
**
** PACKETUDP
** MakingThings 2006.
**
****************************************************************************/

#ifndef PACKETUDP_H
#define PACKETUDP_H

#include <QUdpSocket>
#include <QHostAddress>

#include "PacketInterface.h"
#include "MessageInterface.h"

class PacketUdp : public PacketInterface
{		
	public:	  
	  PacketUdp( MessageInterface* messageInterface );
	  
	  Status connect( char* remoteAddress, int remotePort, int localPort );
	  Status disconnect( );
		
		// From PacketInterface
	  int sendPacket( char* packet, int length );
	  bool isPacketWaiting( );
	  int receivePacket( char* packet, int length );
		
	private:
	  MessageInterface* messageInterface;
	  
	  QUdpSocket* socket;
	  QHostAddress* remoteHostAddress;
	
    char* remoteAddress;
    int remotePort;
    int localPort;
};

#endif




See more files for this project here

Make Controller

The Make Controller is an open microcontroller platform for Makers of all kinds, by MakingThings. This project maintains the official firmware for the board and source for the software tools used with the board.

Project homepage: http://sourceforge.net/projects/makingthings
Programming language(s): C,C#,C++
License: other

  .externalToolBuilders/
    qmake.launch
  debug/
    ctest.exe
    ctestee.bin
    moc_CTestThread.cpp
    moc_CTestWindow.cpp
    test.bin
  io_win32/
    FCPipe.cpp
    FCPipe.h
    FCPipeUSB.cpp
    FCPipeUSB.h
    FC_Error.h
    SAM-BA.dll
    SAMBADLL.cpp
    SAMBADLL.h
    timer.cpp
    timer.h
    xmodem.cpp
    xmodem.h
  release/
    ctest.exe
    moc_CTestThread.cpp
    moc_CTestWindow.cpp
  .cdtproject
  .project
  CTestThread.cpp
  CTestThread.h
  CTestWindow.cpp
  CTestWindow.h
  CTestee.cpp
  CTestee.h
  CTester.cpp
  CTester.h
  Makefile
  Makefile.Debug
  Makefile.Release
  MessageInterface.h
  Osc.cpp
  Osc.h
  PacketInterface.h
  PacketUdp.cpp
  PacketUdp.h
  Samba.cpp
  Samba.h
  SetupAPI.Lib
  SetupAPI.h
  ctest.pro
  ctest.ui
  guid829.h
  loader256_data.h
  main.cpp
  object_script.ctest.Debug
  object_script.ctest.Release
  test.bin
  ui_ctest.h