summary refs log tree commit diff stats
path: root/lib/pure/nativesockets.nim
Commit message (Collapse)AuthorAgeFilesLines
* remove deprecated stuff from the stdlib; introduce better deprecation warningsAraq2018-05-051-4/+1
|
* Change type of `Timeval.tv_sec` to `posix.Time` (#7646)Oscar Nihlgård2018-04-181-2/+6
|
* make nativesockets.Hostent.addrlist readable for ipv4 af_inet addresses (see ↵skilchen2018-04-131-2/+18
| | | | issue #7314) (#7327)
* Fixed crash/interface. Added tests.Yuriy Glukhov2018-03-151-1/+1
|
* Fixes #4995. (#7157)Dominik Picheta2018-02-131-2/+22
|
* Implements nativesockets.accept.Dominik Picheta2017-11-241-2/+15
|
* breaking change: arrays of char do not convert to cstring; ptr to array of ↵Andreas Rumpf2017-10-101-6/+8
| | | | char does
* Merge branch 'stringify-array' of https://github.com/krux02/Nim into ↵Andreas Rumpf2017-10-091-2/+2
|\ | | | | | | krux02-stringify-array
| * removed newString proc again, reverted some unnecesary changesArne Döring2017-07-241-2/+2
| |
* | Fix `getPeerAddr()` `getPeerAddr()`: +`sin6_addr` (#6410)wt2017-09-211-2/+2
| |
* | Introduce first class support for Android (#5772)Fredrik Høisæther Rasch2017-08-061-1/+1
|/
* Implement dial, support IPv6 in httpclient (#5763)Ruslan Mustakov2017-05-021-16/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Posix from detect (#5697)Jacek Sieka2017-04-121-6/+6
| | | | | | | | | | * refactor posix.nim * types move to separate files for platform-specifc and generic ("other') * consts move to separate files that get autogenerated by detect.nim * proc's stay where they are for now, though in a second stage might move as well * fix missing when
* Fixes ambiguity introduced by #5390.Dominik Picheta2017-04-091-2/+2
|
* Add gethostname to nativesockets (#5443)Federico Ceratto2017-03-011-0/+16
|
* cleaned up accept-close-race fix #5279Araq2017-02-071-25/+0
|
* Move checkCloseError to nativesocketsRuslan Mustakov2017-02-071-0/+25
|
* Fix Windows accept() to fail future instead of raisingRuslan Mustakov2017-02-011-1/+2
| | | | Resolves: #5279
* deprecated nativesockets.dealloc, use freeAddrInfo instead; fixed stdlib ↵Andreas Rumpf2017-01-301-10/+12
| | | | deprecations
* Fix nativesockets.select()Loris Pederiva2017-01-181-7/+30
|
* Added 'android4' define support that declares a different gethostbyaddr. ↵Ruslan Mustakov2016-06-221-2/+7
| | | | Fixes #4376
* Merge branch 'unix-sockets' of https://github.com/girvo/Nim into ↵Dominik Picheta2016-05-301-1/+1
|\ | | | | | | girvo-unix-sockets
| * net.nim: add support for Unix socketsMichał Zieliński2015-10-281-1/+1
| |
* | Merge pull request #3648 from FedericoCeratto/reuse_portAndreas Rumpf2016-05-291-1/+1
|\ \ | | | | | | Add SO_REUSEPORT support
| * | Add SO_REUSEPORT supportFederico Ceratto2015-12-161-1/+1
| | |
* | | Define ports as uint16s to fix #3484Josep Sanjuas2016-03-271-15/+51
| | |
* | | Fixed deprecation warnings while Nim compiles.Hans Raaf2016-01-181-1/+1
| | | | | | | | | | | | | | | I just removed unsigned and changed a writeLn() call to writeLine() to avoid the remaining deprecation warnings.
* | | Fix nativesockets compilation on OpenBSD and NetBSDdef2015-12-231-1/+1
|/ /
* | Fixed getAddrInfo on androidYuriy Glukhov2015-12-081-1/+2
| |
* | OpenBSD doesn't support AI_V4MAPPEDJuan Francisco Cantero Hurtado2015-11-231-1/+3
|/ | | Related to #3534
* Merge remote-tracking branch 'origin/devel' into fix-test-failuresAman Gupta2015-10-061-1/+0
|
* Rename rawsockets module to nativesocketsAdam Strzelecki2015-10-031-0/+553
This change was done to avoid confusion with TCP/IP raw sockets. Native sockets module represents handling native system low level socket API in general and is not just limited anyhow to TCP/IP raw sockets. A stub lib/deprecated/pure/rawsockets.nim module has been added as compatibility layer for old code using rawsockets, so this change will not break existing code.