friendev EtherDune TCP/IP library
EtherSocketTest-pc.cpp
Go to the documentation of this file.
1 // EtherDune scratchpad ACross Cross-compile project
2 // Author: Javier Peletier <jm@friendev.com>
3 //
4 // Copyright (c) 2015 All Rights Reserved, http://friendev.com
5 //
6 // This source is subject to the GPLv2 license.
7 // Please see the License.txt file for more information.
8 // All other rights reserved.
9 //
10 // THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
11 // KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
12 // IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
13 // PARTICULAR PURPOSE.
14 
15 #if !defined(ARDUINO)
16 
17 
18 
19 #include <stdio.h>
20 #include <tchar.h>
21 
22 #include <ACross.h>
23 
24 #include <VirtualHardware\AConfig.h>
25 #include <VirtualHardware\ACRPCCLient.h>
26 
27 
28 // "EtherSocketTest.ino"
29 //#include "../EchoServer/EchoServer.ino"
30 //#include "../ChatServer/ChatServer.ino"
31 //#include "../TCPClientDemo_DaytimeClient/TCPClientDemo_DaytimeClient.ino"
32 //#include "../HTTPClientDemo_REST/HTTPClientDemo_REST.ino"
33 //#include "../PingTest/PingTest.ino"
34 //#include "../DHCPTest/DHCPTest.ino"
35 //#include "../HTTPServerDemo/HTTPServerDemo.ino"
36 //#include "../DNSDemo/DNSDemo.ino"
37 #include "../UDPClientDemo_NTPClient/UDPClientDemo_NTPClient.ino"
38 
39 int _tmain(int argc, _TCHAR* argv[])
40 {
41  AConfig::VirtualSerialPort = _T("\\\\.\\COM31");
42  AConfig::HostlinkSerialPort = _T("\\\\.\\COM3");
43 
44  ACRPCCLient::begin();
45 
46 
47 
48  setup();
49 
50  while (1)
51  loop();
52 
53  return 0;
54 }
55 
56 #endif
int _tmain(int argc, _TCHAR *argv[])
void setup()
void loop()