| Line 15... |
Line 15... |
| 15 |
// 1.04 2013_04 Socket Bind Error with explanation (multiple instance of XVC Server) |
15 |
// 1.04 2013_04 Socket Bind Error with explanation (multiple instance of XVC Server) |
| 16 |
// 1.05 2013_04 Test FTDI cable during wait for Accept (to stop the server immediately when cable is disconnected) |
16 |
// 1.05 2013_04 Test FTDI cable during wait for Accept (to stop the server immediately when cable is disconnected) |
| 17 |
// 1.06 2013_04 Added support for Linux (thanks to Martin Poviser) |
17 |
// 1.06 2013_04 Added support for Linux (thanks to Martin Poviser) |
| 18 |
// 1.07 2013_04 Rewritten Host Address function for Linux (function gethostbyname returns 127.0.1.1 on Debian systems) |
18 |
// 1.07 2013_04 Rewritten Host Address function for Linux (function gethostbyname returns 127.0.1.1 on Debian systems) |
| 19 |
// Solved compatibility problems on Linux (FT_SetLatncyTimer requires delay, udev problem with ftdi_sio driver) |
19 |
// Solved compatibility problems on Linux (FT_SetLatncyTimer requires delay, udev problem with ftdi_sio driver) |
| - |
|
20 |
// 1.08 2013_06 Added linux x86_64 variant |
| 20 |
// |
21 |
// |
| 21 |
// |
22 |
// |
| 22 |
// Purpose: |
23 |
// Purpose: |
| 23 |
// |
24 |
// |
| 24 |
// XILINX development software (ISE, WebPack) supports several types of JTAG programming |
25 |
// XILINX development software (ISE, WebPack) supports several types of JTAG programming |
| Line 110... |
Line 111... |
| 110 |
#pragma comment (lib, "Ws2_32.lib") |
111 |
#pragma comment (lib, "Ws2_32.lib") |
| 111 |
//#pragma comment (lib, "../lib_win32/ftd2xx.lib") // Add this file to Resources |
112 |
//#pragma comment (lib, "../lib_win32/ftd2xx.lib") // Add this file to Resources |
| 112 |
|
113 |
|
| 113 |
#else // not WIN32 |
114 |
#else // not WIN32 |
| 114 |
|
115 |
|
| 115 |
#include "lib_linux_i386/WinTypes.h" |
116 |
#include "lib_linux/WinTypes.h" |
| 116 |
#include <sys/types.h> |
117 |
#include <sys/types.h> |
| 117 |
#include <sys/socket.h> |
118 |
#include <sys/socket.h> |
| 118 |
#include <fcntl.h> |
119 |
#include <fcntl.h> |
| 119 |
#include <errno.h> |
120 |
#include <errno.h> |
| 120 |
#include <unistd.h> |
121 |
#include <unistd.h> |