On Windows, sockets are not file descriptors. Therefore _read, _write, and _close should not be used for sockets. Replaced with recv, send, and closesocket.
1. Some band-aid for the situation when pointer > i.endloaded (which sometimes happened and definitely leads to invalid memory accesses)
2. #include <winsock2.h>
If doing LDA, don't set eta to 10 for "non default update rule".