summary refs log tree commit diff stats
path: root/lib/pure/nativesockets.nim
Commit message (Collapse)AuthorAgeFilesLines
* [backport] run nimpretty on the remaining filesnarimiran2019-09-301-48/+52
|
* tiny style change [refactoring]Andreas Rumpf2019-08-081-1/+1
|
* there is only one style -- my styleAraq2019-07-101-6/+6
|
* make more parts of the stdlib compile with --styleCheck:errorAraq2019-07-101-2/+2
|
* styleCheck: make the compiler and large parts of the stdlib compatible with ↵Araq2019-07-101-9/+9
| | | | --styleCheck:error
* ABI fixes for OSX/BSD; fixes #6860 (#11666)Andreas Rumpf2019-07-061-6/+6
|
* Render deprecated pragmas (#8886)LemonBoy2019-06-031-6/+2
| | | | | | | | | * Render deprecated pragmas * fix the expected html * clean up the documentation regarding deprecations * fix typo * fix system.nim * fix random
* Remove long deprecated stuff (#10332)Miran2019-01-181-63/+0
|
* Fix getAddrInfo, add IPPROTO_ICMPV6 Closes #10198Federico Ceratto2019-01-061-2/+5
|
* Merge pull request #9915 from zevv/asyncnet-unixDominik Picheta2018-12-121-0/+11
|\ | | | | Added basic AF_UNIX support to asyncnet.
| * Added basic AF_UNIX support to asyncnet.Ico Doornekamp2018-12-091-0/+11
| | | | | | | | | | | | | | | | 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 changedAndreas Rumpf2018-10-251-2/+2
|/
* Make getSockDomain work with AF_UNIX socketsLemonBoy2018-09-241-7/+4
| | | | Fixes #9055
* Convert *_family fields to cushortLemonBoy2018-09-191-22/+22
| | | | Fixes #9008
* Haiku support for Nim (#8542)alaviss2018-08-141-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * posix_other: Haiku now has spawn.h This is added per https://dev.haiku-os.org/ticket/13446 * posix_other: Add Haiku specific Dirent members * cpuinfo: Add an implementation for Haiku * distros: Add basic Haiku support * encodings: update Haiku support * fenv, math: Haiku now provides libm * times: Add Haiku struct members * ansi_c, osalloc: Add Haiku constants * threads: Add Haiku support * testament: Haiku uses LIBRARY_PATH * nim.cfg: Update Haiku support libnetwork should only be linked if network functions are used * threads: Haiku does not support -pthread switch * tworkingdir: Haiku's env is in /bin * posix_other: add SIGKILLTHR for Haiku * sockets: link with libnetwork on Haiku * coro: correct ucontext.h location http://pubs.opengroup.org/onlinepubs/009696699/basedefs/ucontext.h.html * coro: ucontext backend is not available on Haiku Haiku doesn't provide the <ucontext.h> header, as it was removed from POSIX * coro: fix setjmp backend The compiler does not allow statements after a noreturn function * nativesockets: Haiku doesn't support AI_V4MAPPED * system: hostOS can contains "haiku" * os: add support for Haiku's packagefs packagefs is read-only, but there are writable holes to the underlying file system as well * os: update constant for Haiku
* 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.