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
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
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
pdw
9e771ca707
lib/windows - Dropped 'T' from types
2015-06-04 13:18:38 +02:00
Araq
0775402f55
fixes #2651
2015-05-04 16:47:40 +02:00
Araq
fde16e6c3e
fixes os.moveFile on Windows
2015-02-13 01:39:20 +01:00
Flaviu Tamas
b2140be31f
Fix cross to windows compilation on linux
...
`Winsock2.h` should be all lowercase
2014-12-30 15:42:18 -05:00
Erik O'Leary
aac8de6b4c
Fixed FD_SET casing
2014-10-10 22:36:15 -05:00
Araq
490371977e
some improvements for nimfix
2014-09-09 21:31:34 +02:00
Araq
7333237be6
'nimfix' improvements; FdSet is TFdSet again
2014-09-08 08:46:35 +02:00
Dominik Picheta
0f3025e320
Added Windows asyncfile implementation.
2014-09-05 17:36:16 +01:00
Dominik Picheta
8446d51a6a
Winlean and threads case sensitivity fixes.
2014-08-30 12:57:04 +01:00
Araq
d05df2173b
Nimrod renamed to Nim
2014-08-28 09:50:51 +02:00
Araq
dcffbb052a
big rename
2014-08-28 01:17:21 +02:00
Araq
27869b6c7b
big rename
2014-08-28 00:36:14 +02:00
Araq
df172806ea
big rename
2014-08-28 00:24:52 +02:00