summary refs log tree commit diff stats
path: root/lib/deprecated/pure/rawsockets.nim
blob: ee77b232e5143488f1583c1a069ec9275aa1f72e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import nativesockets
export nativesockets

{.warning: "rawsockets module is deprecated, use nativesockets instead".}

template newRawSocket*(domain, sockType, protocol: cint): expr =
  {.warning: "newRawSocket is deprecated, use newNativeSocket instead".}
  newNativeSocket(domain, sockType, protocol)

template newRawSocket*(domain: Domain = AF_INET,
                       sockType: SockType = SOCK_STREAM,
                       protocol: Protocol = IPPROTO_TCP): expr =
  {.warning: "newRawSocket is deprecated, use newNativeSocket instead".}
  newNativeSocket(domain, sockType, protocol)