Charlie Barto
d55e02ddf1
fixes to allow the usage of clang on windows with the msvc abi and ms headers ( #6442 )
2017-10-09 17:26:53 +02:00
Yuriy Glukhov
0345238d6e
Added moveDir ( #6015 )
2017-06-27 10:09:41 +02:00
Ruslan Mustakov
ecf278c467
Implement dial, support IPv6 in httpclient ( #5763 )
...
* Implement dial, support IPv6 in httpclient
Added ``dial`` procedure to networking modules: ``net``, ``asyncdispatch``,
``asyncnet``. It merges socket creation, address resolution, and connection
into single step. When using ``dial``, you don't have to worry about
IPv4 vs IPv6 problem.
Fixed addrInfo loop in connect to behave properly.
Previously it would stop on first non-immediate failure, instead of
continuing and trying the remaining addresses.
Fixed newAsyncNativeSocket to raise proper error if socket creation
fails.
Fixes : #3811
* Check domain during connect() only on non-Windows
This is how it was in the previous implementation of connect().
* Call 'osLastError' before 'close' in net.dial
* Record osLastError before freeAddrInfo in net.dial
* Add missing docs for 'dial' proc
* Optimize dial to create one FD per domain, add tests
And make async IPv6 servers work on Windows.
* Add IPv6 test to uri module
* Fix getAddrString error handling
2017-05-02 09:25:50 +02:00
Anatoly Galiulin
434a7c8426
Fix posix version of moveFile between different filesystems ( #5580 )
2017-03-23 23:40:03 +01:00
Federico Ceratto
dd4d47c671
Add gethostname to nativesockets ( #5443 )
2017-03-01 09:44:24 +01:00
Rokas Kupstys
a3b8bf300d
Added fiber API to winlean.nim
2017-02-20 17:24:19 +02:00
Ruslan Mustakov
fb8168d338
Fix Windows accept() to fail future instead of raising
...
Resolves : #5279
2017-02-01 18:18:44 +07:00
Eugene Kabanov
e17969c03f
Fix declaration of inet_ntop to be GCSafe. ( #5266 )
2017-01-23 16:58:00 +01:00
Loris Pederiva
f237f7f1cf
Make SockAddr.sa_data public
...
Make SockAddr.sa_data public, coherently with its Posix counterpart.
2017-01-11 12:01:27 +01:00
Araq
5182be6204
winlean: get rid of deprecation warning
2017-01-03 17:06:31 +01:00
Araq
08913db924
added registry.nim to the stdlib
2016-10-09 02:01:28 +02:00
Araq
6e6b90278c
koch supports the finish command for smooth installations on Windows
2016-10-09 01:59:50 +02:00
Araq
6a1b8e691f
fixes #4764 , fixes #4731 , fixes #4724
2016-09-14 19:59:32 +02:00
Andreas Rumpf
0834cd63d9
prepare Nim codebase for upcoming parser changes
2016-07-15 12:56:03 +02:00
miere43
8314412b99
Added stdcall pragma to WINAPI methods.
2016-06-26 22:18:14 +03:00
miere43
57bd50a916
Removed INPUT_KEY_RECORD
2016-06-26 16:01:37 +03:00
miere43
dd7a24d8cc
Implemented terminal.getch() for Windows
2016-06-23 23:22:38 +03:00
cheatfate
b53f13cbe7
New version, without any piece of code duplication.
2016-06-17 13:37:42 +03:00
cheatfate
43329c5909
Introduce addRead/addWrite for Windows IOCP.
2016-06-12 15:09:30 +03:00
Andreas Rumpf
6556ec2ce0
fixes Windows builds
2016-05-30 10:52:47 +02:00
Stephane Fontaine
f12fc1140d
Remove spurious semicolon in type definition
2016-05-19 19:58:17 +04:00
cheatfate
6fa6fdeb34
Resolve bugs based on unreliable bytesReceived value.
2016-05-12 21:11:42 +03:00
cheatfate
2a2a3d6c39
CompletionKey parameter for functions CreateIoCompletionPort,
...
GetQueuedCompletionStatus must be 64bit size on amd64 and 32bit size on x86.
2016-04-19 03:04:44 +03:00
cheatfate
5d96faf78c
Correct getOverlappedResult() definition
2016-04-13 11:02:46 +03:00
Araq
db2b215658
resolved merge conflicts
2016-03-29 15:31:10 +02:00
Josep Sanjuas
5a582a0d9c
Define ports as uint16s to fix #3484
2016-03-27 22:56:44 +02:00
Araq
8bf14b12a9
proper indentation
2016-03-18 18:56:01 +01:00
Araq
aa47302866
get rid of compiler warning
2016-03-18 18:53:17 +01:00
gmpreussner
9920de0147
Renamed local variable to avoid compiler warning.
2016-03-16 11:34:09 -04:00
cheatfate
901b7bdaf2
Resolve "redifintion" errors, when using Microsoft Compiler and Visual Studio headers described in Issue #3879
2016-02-18 18:17:01 +02:00
def
867285c5a9
Rename THANDLE to Handle to fix deprecation warnings
2016-02-11 22:45:03 +01:00
Anatoly Galiulin
477e3b0e20
Fixed issue 3539, added test
2016-01-28 16:56:06 +06:00
Araq
c977daf9d8
added poDemon flag for process management
2015-10-19 16:09:34 +02:00
Araq
2e413d3186
fixes #3383
2015-10-06 16:15:51 +02:00
Araq
4e44ded2be
winlean additions; preparing for osproc patch to use named pipes
2015-09-29 19:30:45 +02:00
Dominik Picheta
4da5e47414
Implements getPeerAddr/getPeerName on Windows and adds IDX.
2015-09-15 10:37:16 +01:00
Dominik Picheta
6109e6a999
Fixes net/asyncdispatch on Windows. Ref #2976 . Fixes #2996 .
2015-06-25 22:38:17 +01:00
Araq
87f65f5e72
preparations for more Nimble packages; clear licensing; fixes #2949
2015-06-20 23:24:21 +02:00
Dominik Picheta
ed46ca6d57
Add WSAEADDRINUSE to winlean.
2015-06-04 23:23:41 +01:00
Araq
ccb9ae2d52
stdlib: don't use deprecated symbols
2015-06-04 13:18:42 +02:00
Perelandric
2124952db3
Added line breaks to long 'deprecated' pragmas
2015-06-04 13:18:40 +02:00
pdw
9e771ca707
lib/windows - Dropped 'T' from types
2015-06-04 13:18:38 +02:00
Andreas Rumpf
0b184f2584
Merge pull request #2608 from chrisheller/devel
...
Add procs for VirtualAllocEx and VirtualFreeEx in windows.nim
2015-05-08 02:20:14 +02:00
Araq
0775402f55
fixes #2651
2015-05-04 16:47:40 +02:00
Chris Heller
2aa61034ba
Add deprecated versions of procs in windows.nim that had DWORD parameters converted to SIZE_T
2015-05-01 23:54:28 -07:00
Chris Heller
fcb4d5a44a
Update VirtualLock/Unlock to use SIZE_T instead of DWORD for sizes
2015-04-28 10:19:44 -07:00
Chris Heller
26115027bf
Update the GlobalAlloc/ReAlloc and LocalAlloc/ReAlloc procs to use SIZE_T instead of DWORD.
2015-04-28 10:12:06 -07:00
Chris Heller
ef46f75572
Update Heap* procs in windows.nim that were using DWORD sizes to use SIZE_T
2015-04-28 10:00:10 -07:00
Chris Heller
c750900286
Update other Virtual* procs that were using dwSize: DWORD to use SIZE_T
2015-04-28 09:53:01 -07:00
Chris Heller
ef887d5d90
Add procs for VirtualAllocEx and VirtualFreeEx in windows.nim
2015-04-27 21:02:48 -07:00