Removed asyncdispatch.newAsyncNativeSocket, was deprecated since 0.18 (#14854)
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
This commit is contained in:
parent
56b3d422b0
commit
a519f3b038
2 changed files with 1 additions and 10 deletions
|
|
@ -185,6 +185,7 @@ proc mydiv(a, b): int {.raises: [].} =
|
||||||
|
|
||||||
- Added the `thiscall` calling convention as specified by Microsoft, mostly for hooking purpose
|
- Added the `thiscall` calling convention as specified by Microsoft, mostly for hooking purpose
|
||||||
- Deprecated `{.unroll.}` pragma, was ignored by the compiler anyways, was a nop.
|
- Deprecated `{.unroll.}` pragma, was ignored by the compiler anyways, was a nop.
|
||||||
|
- Removed `asyncdispatch.newAsyncNativeSocket`, was deprecated since `0.18`.
|
||||||
- Remove `dom.releaseEvents` and `dom.captureEvents`, was deprecated.
|
- Remove `dom.releaseEvents` and `dom.captureEvents`, was deprecated.
|
||||||
|
|
||||||
## Compiler changes
|
## Compiler changes
|
||||||
|
|
|
||||||
|
|
@ -1640,16 +1640,6 @@ proc createAsyncNativeSocket*(domain: Domain = Domain.AF_INET,
|
||||||
inheritable = defined(nimInheritHandles)): AsyncFD =
|
inheritable = defined(nimInheritHandles)): AsyncFD =
|
||||||
createAsyncNativeSocketImpl(domain, sockType, protocol, inheritable)
|
createAsyncNativeSocketImpl(domain, sockType, protocol, inheritable)
|
||||||
|
|
||||||
proc newAsyncNativeSocket*(domain: cint, sockType: cint,
|
|
||||||
protocol: cint): AsyncFD {.deprecated: "use createAsyncNativeSocket instead".} =
|
|
||||||
createAsyncNativeSocketImpl(domain, sockType, protocol)
|
|
||||||
|
|
||||||
proc newAsyncNativeSocket*(domain: Domain = Domain.AF_INET,
|
|
||||||
sockType: SockType = SOCK_STREAM,
|
|
||||||
protocol: Protocol = IPPROTO_TCP): AsyncFD
|
|
||||||
{.deprecated: "use createAsyncNativeSocket instead".} =
|
|
||||||
createAsyncNativeSocketImpl(domain, sockType, protocol)
|
|
||||||
|
|
||||||
when defined(windows) or defined(nimdoc):
|
when defined(windows) or defined(nimdoc):
|
||||||
proc bindToDomain(handle: SocketHandle, domain: Domain) =
|
proc bindToDomain(handle: SocketHandle, domain: Domain) =
|
||||||
# Extracted into a separate proc, because connect() on Windows requires
|
# Extracted into a separate proc, because connect() on Windows requires
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue