3n-k1
0944b0f441
[backport] Fix style issues in lib/, tools/, and testament/. Fixes #12687 . ( #12754 )
2019-11-28 08:32:11 +01:00
Gampol T
82fe19769a
documented behaviour of recv on bufferd socket ( #12374 )
2019-10-09 10:48:15 +02:00
narimiran
0ca9cc7419
[backport] run nimpretty on web stuff
2019-09-30 13:58:11 +02:00
Federico Ceratto
39290cf88c
Fix spellings ( #12277 ) [backport]
2019-09-27 07:02:54 +02:00
Federico Ceratto
170cb4f4cb
Update OpenSSL example ( #11896 )
...
* Update OpenSSL example
Fix privkey filename.
Bump up RSA key size.
Add ECDSA example.
2019-08-21 20:01:17 +02:00
Araq
c7e77edecc
fixes #11925
2019-08-16 12:33:31 +02:00
Araq
5a020d641d
style improvements; fixes #11774
2019-07-19 17:25:04 +02:00
Oscar Nihlgård
1f32498a47
Use std/monotimes in the stdlib
2019-07-16 11:05:42 +02:00
Araq
87a2ced1ba
there is only one style -- my style
2019-07-10 19:17:06 +02:00
Araq
bc7733827d
make more parts of the stdlib compile with --styleCheck:error
2019-07-10 15:48:30 +02:00
Araq
c94647aeca
styleCheck: make the compiler and large parts of the stdlib compatible with --styleCheck:error
2019-07-10 12:42:41 +02:00
Andreas Rumpf
5f515410af
newruntime for async ( #11650 )
...
* fixes overloading resolution for passing owned(Future[string]) to Future[T]
* WIP: make --newruntime work with .async
* memtracker: make it compile again
* make Nimble compile again
2019-07-05 01:42:17 +02:00
Smittyvb
40c5509a02
Make net module compile with --taintMode:on ( #11360 )
2019-06-01 10:44:40 +02:00
Andreas Rumpf
49e686ab4e
fixes #1286 ; object case transitions are now sound
2019-05-27 21:29:02 +02:00
Zestyr
a06038be3f
Update outdated ETimeout exception name
2019-05-07 01:28:33 +02:00
Federico Ceratto
5825dcb0b5
Detect local "primary" IP address
2019-03-17 16:58:27 +00:00
Federico Ceratto
28a83a8388
Handle IPv6 in bindAddr #7633
...
Add test
2019-02-23 13:06:26 +00:00
LemonBoy
81e5a35d56
Show correct address for ipv6 sockets, fixes #7634 ( #10505 )
2019-01-31 07:34:26 +01:00
Federico Ceratto
095eaacf21
Fix spelling errors ( #10379 )
2019-01-19 16:01:27 +01:00
Miran
214f48eae9
Remove long deprecated stuff ( #10332 )
2019-01-18 07:18:32 +01:00
Dominik Picheta
76c214a2e9
Merge pull request #9915 from zevv/asyncnet-unix
...
Added basic AF_UNIX support to asyncnet.
2018-12-12 23:06:08 +00:00
Ico Doornekamp
71e9fff364
Added basic AF_UNIX support to asyncnet.
...
Unfortunately this required some code duplication because the
doConnect() from asynccommon.nim only works with addrInfo which does not
make sense for AF_UNIX.
makeUnixAddr() was moved to nativesocket.nim and exported
2018-12-09 20:53:05 +01:00
Andreas Rumpf
223e92b83a
stdlib: documenation updates, the exception names have been changed
2018-10-25 07:42:45 +02:00
LemonBoy
a27429304e
Convert *_family fields to cushort
...
Fixes #9008
2018-09-19 12:33:11 +02:00
LemonBoy
a2a06d43f2
Fix connectUnix/bindUnix with abstract socket paths
...
The only way to make this work for both abstract and non-abstract
sockets is to send the kernel an incomplete structure.
Reported by Epictek on the forum.
2018-09-15 20:43:08 +02:00
Dominik Picheta
6e83746caa
Net module fixes ( #8597 )
...
* net.accept no longer needs an initialised socket. Fixes #7848 .
* Assert error when using sendTo/recvFrom on TCP socket.
* net.sendTo now raises OSError.
2018-08-28 15:52:28 +02:00
Andreas Rumpf
dae5450947
WIP: disallow 'nil' for strings and seqs
2018-08-13 11:41:33 +02:00
Euan T
e11d52a4e8
Update example code for UDP sockets
2018-07-30 13:39:32 +01:00
Yuriy Glukhov
b2323de914
Fixed compilation error when Sockaddr_in4 or Sockaddr_in6 passed to fromSockAddr
2018-06-07 21:10:00 +03:00
cheatfate
2902308a05
Fix one more place.
2018-06-07 13:06:06 +03:00
cheatfate
46a6fa53a9
Fix fromSockAddrAux() to handle IPv6 addresses properly.
2018-06-07 12:33:29 +03:00
Andreas Rumpf
e67eddc91b
Merge pull request #7822 from data-man/fix_2753
...
Fixes #2753
2018-06-07 10:40:50 +02:00
WhiteDuke
b36c499907
Set domain to client
2018-05-27 21:08:37 +02:00
data-man
5e8faaf710
Fixes #2753
2018-05-14 19:13:11 +03:00
Mathias Stearn
9048bcc54b
Add connectUnix and bindUnix to net docs
...
fixes #7715
2018-05-09 17:42:16 +02:00
Araq
bbb0fd4eb7
remove deprecated stuff from the stdlib; introduce better deprecation warnings
2018-05-05 21:45:07 +02:00
David Krause
78e946c450
fixed high level sendTo for sending to udp6 ( #7630 )
2018-05-02 22:44:08 +01:00
Jacek Sieka
72dfe176f5
remove dead code elimination option ( #7669 )
2018-04-23 11:02:38 +02:00
Dominik Picheta
39c71d6211
Merge pull request #7336 from yglukhov/ipaddr-sockaddr-conversions
...
Conversion procs for (IpAddress, Port) <-> (SockAddr, Socklen)
2018-04-02 14:31:05 +01:00
Graham Fawcett
ace96bf83e
net.connect (with timeout), raise error on connect failure
...
Under Linux (probably POSIX), the current code tests for timeout, but
does not test for connection failure. connectAsync() returns succesfully
upon an EINPROGRESS result; but at this point, the connection state is
still unknown. After selectWrite() is done, we need to test the socket
for errors again.
2018-03-28 19:09:16 -04:00
Yuriy Glukhov
0770844285
Comments addressed
2018-03-24 22:55:06 +02:00
Yuriy Glukhov
b52de1fcee
More flexible fromSockAddr interface
2018-03-15 17:39:09 +02:00
Yuriy Glukhov
1bd0efb067
Fixed crash/interface. Added tests.
2018-03-15 15:49:41 +02:00
Yuriy Glukhov
29bb10b185
Convertion procs for (IpAddress, Port) <-> (SockAddr, Socklen)
2018-03-14 23:14:31 +02:00
Dominik Picheta
1975998c56
Detect openssl related to outdated openssl and help user solve issue.
2018-02-25 13:34:32 +00:00
Dominik Picheta
63bc046ddf
Fixes #7227 .
2018-02-17 19:36:06 +00:00
Dominik Picheta
1a2351f95f
Fixes #4995 . ( #7157 )
2018-02-13 11:08:37 +01:00
Dominik Picheta
47d05b3f2e
Merge branch 'devel' into async-improvements
2018-01-17 16:28:00 +00:00
Dominik Picheta
1661062ebf
Raise assertion error when attempting to use closed socket.
2018-01-15 17:48:32 +00:00
Dominik Picheta
4181e1940d
recv with a timeout of -1 shouldn't wait on all data.
2018-01-11 20:46:44 +00:00