- WSAStartup() added; the socket can't be opened on Windows whitout this.
- Mutex inited, the program doesn't crash anymore on every new connection.
- Use closesocket() intedad close() for sockets. Function close() is useles for sockets on Windows becasue remains open.Fixed.
- Tested and working with OpenCPN
Use tcp listener service insted of udp.
These files are compiles into a library and a tcp server has the advantage that more clients can access AIS data from the same server.
The tcp_listener is tested under raspbian jessie on a raspberry pi with 5 concurrent connections.
TODO: Fix to run under OSX and Windows.