aboutsummaryrefslogtreecommitdiff
path: root/win32/net.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* win32: fix networking problemsRon Yorston2020-06-031-2/+4
| | | | | | | | | The subprocess that handles incoming connections for httpd didn't work. It has an accepted connection on stdin and calls getpeername() to obtain its details, but getpeername() didn't initialise networking. ssl_client only seems to deal with file descriptors. Expose init_winsock() again and call it from ssl_client.
* win32: only initialise networking if necessaryRon Yorston2020-06-011-5/+36
| | | | | | A call to initialise networking is made during start up even if the applet doesn't need it. Instead, only initialise networking when a call is made to a function that definitely requires it.
* win32: new functions: getpeername(2), mingw_spawn_detach()Ron Yorston2020-04-051-0/+12
| | | | | | | Implement getpeername(2). Add mingw_spawn_detach() to allow the spawned process to detach from the console.
* win32: correct cast of argument to _open_osfhandleRon Yorston2016-05-251-2/+2
|
* Silence a couple of compiler warningsRon Yorston2016-03-061-1/+1
|
* mingw: additional networking supportRon Yorston2015-04-221-0/+47
|
* win32: reimplement connect()Nguyễn Thái Ngọc Duy2010-09-201-0/+7
| | | | | | connect() now returns a socket handle, i.e. a HANDLE. This kind of handle works with read()/write(). But on the other hand, FILE* functions are dead because they are not crt file handles??
* win32: reimplement socket()Nguyễn Thái Ngọc Duy2010-09-201-0/+27
|
* win32: add init_winsock()Nguyễn Thái Ngọc Duy2010-09-201-0/+9
| | | | | All network applets must call this function before using any winsock functions.
* win32: implement inet_aton()Nguyễn Thái Ngọc Duy2010-09-201-0/+11