Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Show correct address for ipv6 sockets, fixes #7634 (#10505) | LemonBoy | 2019-01-31 | 1 | -1/+1 |
| | |||||
* | Fix spelling errors (#10379) | Federico Ceratto | 2019-01-19 | 1 | -19/+19 |
| | |||||
* | Remove long deprecated stuff (#10332) | Miran | 2019-01-18 | 1 | -37/+2 |
| | |||||
* | Merge pull request #9915 from zevv/asyncnet-unix | Dominik Picheta | 2018-12-12 | 1 | -7/+0 |
|\ | | | | | Added basic AF_UNIX support to asyncnet. | ||||
| * | Added basic AF_UNIX support to asyncnet. | Ico Doornekamp | 2018-12-09 | 1 | -7/+0 |
| | | | | | | | | | | | | | | | | 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 | ||||
* | | stdlib: documenation updates, the exception names have been changed | Andreas Rumpf | 2018-10-25 | 1 | -14/+14 |
|/ | |||||
* | Convert *_family fields to cushort | LemonBoy | 2018-09-19 | 1 | -7/+4 |
| | | | | Fixes #9008 | ||||
* | Fix connectUnix/bindUnix with abstract socket paths | LemonBoy | 2018-09-15 | 1 | -2/+2 |
| | | | | | | | 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. | ||||
* | Net module fixes (#8597) | Dominik Picheta | 2018-08-28 | 1 | -17/+16 |
| | | | | | * net.accept no longer needs an initialised socket. Fixes #7848. * Assert error when using sendTo/recvFrom on TCP socket. * net.sendTo now raises OSError. | ||||
* | WIP: disallow 'nil' for strings and seqs | Andreas Rumpf | 2018-08-13 | 1 | -24/+24 |
| | |||||
* | Update example code for UDP sockets | Euan T | 2018-07-30 | 1 | -1/+1 |
| | |||||
* | Fixed compilation error when Sockaddr_in4 or Sockaddr_in6 passed to fromSockAddr | Yuriy Glukhov | 2018-06-07 | 1 | -1/+1 |
| | |||||
* | Fix one more place. | cheatfate | 2018-06-07 | 1 | -1/+1 |
| | |||||
* | Fix fromSockAddrAux() to handle IPv6 addresses properly. | cheatfate | 2018-06-07 | 1 | -9/+16 |
| | |||||
* | Merge pull request #7822 from data-man/fix_2753 | Andreas Rumpf | 2018-06-07 | 1 | -1/+1 |
|\ | | | | | Fixes #2753 | ||||
| * | Fixes #2753 | data-man | 2018-05-14 | 1 | -1/+1 |
| | | |||||
* | | Set domain to client | WhiteDuke | 2018-05-27 | 1 | -0/+1 |
|/ | |||||
* | Add connectUnix and bindUnix to net docs | Mathias Stearn | 2018-05-09 | 1 | -1/+1 |
| | | | fixes #7715 | ||||
* | remove deprecated stuff from the stdlib; introduce better deprecation warnings | Araq | 2018-05-05 | 1 | -9/+0 |
| | |||||
* | fixed high level sendTo for sending to udp6 (#7630) | David Krause | 2018-05-02 | 1 | -3/+2 |
| | |||||
* | remove dead code elimination option (#7669) | Jacek Sieka | 2018-04-23 | 1 | -1/+1 |
| | |||||
* | Merge pull request #7336 from yglukhov/ipaddr-sockaddr-conversions | Dominik Picheta | 2018-04-02 | 1 | -0/+37 |
|\ | | | | | Conversion procs for (IpAddress, Port) <-> (SockAddr, Socklen) | ||||
| * | Comments addressed | Yuriy Glukhov | 2018-03-24 | 1 | -1/+1 |
| | | |||||
| * | More flexible fromSockAddr interface | Yuriy Glukhov | 2018-03-15 | 1 | -5/+9 |
| | | |||||
| * | Fixed crash/interface. Added tests. | Yuriy Glukhov | 2018-03-15 | 1 | -6/+6 |
| | | |||||
| * | Convertion procs for (IpAddress, Port) <-> (SockAddr, Socklen) | Yuriy Glukhov | 2018-03-14 | 1 | -0/+33 |
| | | |||||
* | | net.connect (with timeout), raise error on connect failure | Graham Fawcett | 2018-03-28 | 1 | -0/+3 |
|/ | | | | | | | | 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. | ||||
* | Detect openssl related to outdated openssl and help user solve issue. | Dominik Picheta | 2018-02-25 | 1 | -2/+8 |
| | |||||
* | Fixes #7227. | Dominik Picheta | 2018-02-17 | 1 | -0/+5 |
| | |||||
* | Fixes #4995. (#7157) | Dominik Picheta | 2018-02-13 | 1 | -3/+3 |
| | |||||
* | Merge branch 'devel' into async-improvements | Dominik Picheta | 2018-01-17 | 1 | -15/+32 |
|\ | |||||
| * | Raise assertion error when attempting to use closed socket. | Dominik Picheta | 2018-01-15 | 1 | -11/+24 |
| | | |||||
| * | recv with a timeout of -1 shouldn't wait on all data. | Dominik Picheta | 2018-01-11 | 1 | -1/+5 |
| | | |||||
| * | Merge pull request #6922 from FedericoCeratto/openssl-1.1.0 | Dominik Picheta | 2018-01-10 | 1 | -1/+1 |
| |\ | | | | | | | Add OpenSSL 1.1.0 support | ||||
| | * | Add OpenSSL 1.1.0 support #5000 | Federico Ceratto | 2017-12-28 | 1 | -1/+1 |
| | | | | | | | | | | | | Add a simple online test | ||||
| * | | net.nim: minor documentation update | Andreas Rumpf | 2018-01-07 | 1 | -2/+2 |
| |/ | |||||
* | | Merge branch 'devel' into async-improvements | Andreas Rumpf | 2017-12-11 | 1 | -1/+13 |
|\| | |||||
| * | Add TCP_NODELAY support #6795 | Federico Ceratto | 2017-11-24 | 1 | -1/+13 |
| | | |||||
* | | Implements nativesockets.accept. | Dominik Picheta | 2017-11-24 | 1 | -7/+3 |
|/ | |||||
* | Fix creating server example in net module | Dominik Picheta | 2017-11-07 | 1 | -1/+1 |
| | |||||
* | Fixed crash in case of ssl error in SSLShutdown (#6662) | Yuriy Glukhov | 2017-11-01 | 1 | -2/+5 |
| | |||||
* | Remove expr/stmt (#5857) | Arne Döring | 2017-07-25 | 1 | -1/+1 |
| | |||||
* | Add 'hostname' param to wrapConnectedSocket | Ruslan Mustakov | 2017-05-04 | 1 | -176/+182 |
| | |||||
* | Implement dial, support IPv6 in httpclient (#5763) | Ruslan Mustakov | 2017-05-02 | 1 | -2/+59 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 | ||||
* | fixes #3847 (#5609) | Andreas Rumpf | 2017-03-27 | 1 | -8/+3 |
| | |||||
* | deprecated nativesockets.dealloc, use freeAddrInfo instead; fixed stdlib ↵ | Andreas Rumpf | 2017-01-30 | 1 | -12/+12 |
| | | | | deprecations | ||||
* | Fixed dynlink with OpenSSL >1.1.0. Added loadLibPattern. | Yuriy Glukhov | 2016-11-30 | 1 | -23/+10 |
| | |||||
* | fixed typo | David Krause | 2016-11-17 | 1 | -1/+1 |
| | |||||
* | Mark socketError as gcsafe | Yuriy Glukhov | 2016-10-26 | 1 | -1/+1 |
| | |||||
* | Fixes #3847. | Dominik Picheta | 2016-09-25 | 1 | -3/+19 |
| |