mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-21 16:31:39 +00:00
Removed asyncdispatch.newAsyncNativeSocket, was deprecated since 0.18 (#14854)
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
This commit is contained in:
@@ -185,6 +185,7 @@ proc mydiv(a, b): int {.raises: [].} =
|
||||
|
||||
- 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.
|
||||
- Removed `asyncdispatch.newAsyncNativeSocket`, was deprecated since `0.18`.
|
||||
- Remove `dom.releaseEvents` and `dom.captureEvents`, was deprecated.
|
||||
|
||||
## Compiler changes
|
||||
|
||||
@@ -1640,16 +1640,6 @@ proc createAsyncNativeSocket*(domain: Domain = Domain.AF_INET,
|
||||
inheritable = defined(nimInheritHandles)): AsyncFD =
|
||||
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):
|
||||
proc bindToDomain(handle: SocketHandle, domain: Domain) =
|
||||
# Extracted into a separate proc, because connect() on Windows requires
|
||||
|
||||
Reference in New Issue
Block a user