net.idx 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. nimTitle net net.html module std/net 0
  2. nim Certificate net.html#Certificate type Certificate 119
  3. nim SslError net.html#SslError object SslError 121
  4. nim CVerifyNone net.html#CVerifyNone SslCVerifyMode.CVerifyNone 123
  5. nim CVerifyPeer net.html#CVerifyPeer SslCVerifyMode.CVerifyPeer 123
  6. nim CVerifyPeerUseEnvVars net.html#CVerifyPeerUseEnvVars SslCVerifyMode.CVerifyPeerUseEnvVars 123
  7. nim SslCVerifyMode net.html#SslCVerifyMode enum SslCVerifyMode 123
  8. nim protSSLv2 net.html#protSSLv2 SslProtVersion.protSSLv2 126
  9. nim protSSLv3 net.html#protSSLv3 SslProtVersion.protSSLv3 126
  10. nim protTLSv1 net.html#protTLSv1 SslProtVersion.protTLSv1 126
  11. nim protSSLv23 net.html#protSSLv23 SslProtVersion.protSSLv23 126
  12. nim SslProtVersion net.html#SslProtVersion enum SslProtVersion 126
  13. nim SslContext net.html#SslContext type SslContext 129
  14. nim AcceptNoClient net.html#AcceptNoClient SslAcceptResult.AcceptNoClient 134
  15. nim AcceptNoHandshake net.html#AcceptNoHandshake SslAcceptResult.AcceptNoHandshake 134
  16. nim AcceptSuccess net.html#AcceptSuccess SslAcceptResult.AcceptSuccess 134
  17. nim SslAcceptResult net.html#SslAcceptResult enum SslAcceptResult 134
  18. nim handshakeAsClient net.html#handshakeAsClient SslHandshakeType.handshakeAsClient 137
  19. nim handshakeAsServer net.html#handshakeAsServer SslHandshakeType.handshakeAsServer 137
  20. nim SslHandshakeType net.html#SslHandshakeType enum SslHandshakeType 137
  21. nim SslClientGetPskFunc net.html#SslClientGetPskFunc type SslClientGetPskFunc 140
  22. nim SslServerGetPskFunc net.html#SslServerGetPskFunc type SslServerGetPskFunc 142
  23. nim BufferSize net.html#BufferSize const BufferSize 153
  24. nim MaxLineLength net.html#MaxLineLength const MaxLineLength 154
  25. nim SocketImpl net.html#SocketImpl object SocketImpl 157
  26. nim Socket net.html#Socket type Socket 176
  27. nim OptAcceptConn net.html#OptAcceptConn SOBool.OptAcceptConn 178
  28. nim OptBroadcast net.html#OptBroadcast SOBool.OptBroadcast 178
  29. nim OptDebug net.html#OptDebug SOBool.OptDebug 178
  30. nim OptDontRoute net.html#OptDontRoute SOBool.OptDontRoute 178
  31. nim OptKeepAlive net.html#OptKeepAlive SOBool.OptKeepAlive 178
  32. nim OptOOBInline net.html#OptOOBInline SOBool.OptOOBInline 178
  33. nim OptReuseAddr net.html#OptReuseAddr SOBool.OptReuseAddr 178
  34. nim OptReusePort net.html#OptReusePort SOBool.OptReusePort 178
  35. nim OptNoDelay net.html#OptNoDelay SOBool.OptNoDelay 178
  36. nim SOBool net.html#SOBool enum SOBool 178
  37. nim ReadFullLine net.html#ReadFullLine ReadLineResult.ReadFullLine 182
  38. nim ReadPartialLine net.html#ReadPartialLine ReadLineResult.ReadPartialLine 182
  39. nim ReadDisconnected net.html#ReadDisconnected ReadLineResult.ReadDisconnected 182
  40. nim ReadNone net.html#ReadNone ReadLineResult.ReadNone 182
  41. nim ReadLineResult net.html#ReadLineResult enum ReadLineResult 182
  42. nim TimeoutError net.html#TimeoutError object TimeoutError 185
  43. nim SocketFlag net.html#SocketFlag enum SocketFlag 187
  44. nim IpAddressFamily net.html#IpAddressFamily enum IpAddressFamily 195
  45. nim IpAddress net.html#IpAddress object IpAddress 199
  46. nim socketError net.html#socketError,Socket,int,set[SocketFlag] proc socketError(socket: Socket; err: int = -1; async = false;\n lastError = -1.OSErrorCode; flags: set[SocketFlag] = {}) 234
  47. nim isDisconnectionError net.html#isDisconnectionError,set[SocketFlag],OSErrorCode proc isDisconnectionError(flags: set[SocketFlag]; lastError: OSErrorCode): bool 238
  48. nim toOSFlags net.html#toOSFlags,set[SocketFlag] proc toOSFlags(socketFlags: set[SocketFlag]): cint 256
  49. nim newSocket net.html#newSocket,SocketHandle,Domain,SockType,Protocol proc newSocket(fd: SocketHandle; domain: Domain = AF_INET;\n sockType: SockType = SOCK_STREAM; protocol: Protocol = IPPROTO_TCP;\n buffered = true): owned(Socket) 265
  50. nim newSocket net.html#newSocket,cint,cint,cint proc newSocket(domain, sockType, protocol: cint; buffered = true;\n inheritable = defined(nimInheritHandles)): owned(Socket) 283
  51. nim newSocket net.html#newSocket,Domain,SockType,Protocol proc newSocket(domain: Domain = AF_INET; sockType: SockType = SOCK_STREAM;\n protocol: Protocol = IPPROTO_TCP; buffered = true;\n inheritable = defined(nimInheritHandles)): owned(Socket) 298
  52. nim parseIpAddress net.html#parseIpAddress,string proc parseIpAddress(addressStr: string): IpAddress 482
  53. nim isIpAddress net.html#isIpAddress,string proc isIpAddress(addressStr: string): bool 497
  54. nim toSockAddr net.html#toSockAddr,IpAddress,Port,Sockaddr_storage,SockLen proc toSockAddr(address: IpAddress; port: Port; sa: var Sockaddr_storage;\n sl: var SockLen) 506
  55. nim fromSockAddr net.html#fromSockAddr,,SockLen,IpAddress,Port proc fromSockAddr(sa: Sockaddr_storage | SockAddr | Sockaddr_in | Sockaddr_in6;\n sl: SockLen; address: var IpAddress; port: var Port) 544
  56. nim sslHandle net.html#sslHandle,Socket proc sslHandle(self: Socket): SslPtr 559
  57. nim raiseSSLError net.html#raiseSSLError,string proc raiseSSLError(s = "") 564
  58. nim getExtraData net.html#getExtraData,SslContext,int proc getExtraData(ctx: SslContext; index: int): RootRef 580
  59. nim setExtraData net.html#setExtraData,SslContext,int,RootRef proc setExtraData(ctx: SslContext; index: int; data: RootRef) 589
  60. nim newContext net.html#newContext,string,string,string,string proc newContext(protVersion = protSSLv23; verifyMode = CVerifyPeer; certFile = "";\n keyFile = ""; cipherList = CiphersIntermediate; caDir = "";\n caFile = ""; ciphersuites = CiphersModern): SslContext 624
  61. nim destroyContext net.html#destroyContext,SslContext proc destroyContext(ctx: SslContext) 739
  62. nim pskIdentityHint= net.html#pskIdentityHint=,SslContext,string proc pskIdentityHint=(ctx: SslContext; hint: string) 749
  63. nim clientGetPskFunc net.html#clientGetPskFunc,SslContext proc clientGetPskFunc(ctx: SslContext): SslClientGetPskFunc 756
  64. nim clientGetPskFunc= net.html#clientGetPskFunc=,SslContext,SslClientGetPskFunc proc clientGetPskFunc=(ctx: SslContext; fun: SslClientGetPskFunc) 774
  65. nim serverGetPskFunc net.html#serverGetPskFunc,SslContext proc serverGetPskFunc(ctx: SslContext): SslServerGetPskFunc 783
  66. nim serverGetPskFunc= net.html#serverGetPskFunc=,SslContext,SslServerGetPskFunc proc serverGetPskFunc=(ctx: SslContext; fun: SslServerGetPskFunc) 796
  67. nim getPskIdentity net.html#getPskIdentity,Socket proc getPskIdentity(socket: Socket): string 804
  68. nim wrapSocket net.html#wrapSocket,SslContext,Socket proc wrapSocket(ctx: SslContext; socket: Socket) 809
  69. nim wrapConnectedSocket net.html#wrapConnectedSocket,SslContext,Socket,SslHandshakeType,string proc wrapConnectedSocket(ctx: SslContext; socket: Socket;\n handshake: SslHandshakeType; hostname: string = "") 856
  70. nim getPeerCertificates net.html#getPeerCertificates,SslPtr proc getPeerCertificates(sslHandle: SslPtr): seq[Certificate] 889
  71. nim getPeerCertificates net.html#getPeerCertificates,Socket proc getPeerCertificates(socket: Socket): seq[Certificate] 908
  72. nim sessionIdContext= net.html#sessionIdContext=,SslContext,string proc sessionIdContext=(ctx: SslContext; sidCtx: string) 919
  73. nim getSocketError net.html#getSocketError,Socket proc getSocketError(socket: Socket): OSErrorCode 935
  74. nim listen net.html#listen,Socket proc listen(socket: Socket; backlog = SOMAXCONN) 1009
  75. nim bindAddr net.html#bindAddr,Socket,string proc bindAddr(socket: Socket; port = Port(0); address = "") 1018
  76. nim acceptAddr net.html#acceptAddr,Socket,,string proc acceptAddr(server: Socket; client: var owned(Socket); address: var string;\n flags = {SafeDisconn}; inheritable = defined(nimInheritHandles)) 1040
  77. nim accept net.html#accept,Socket, proc accept(server: Socket; client: var owned(Socket); flags = {SafeDisconn};\n inheritable = defined(nimInheritHandles)) 1139
  78. nim close net.html#close,Socket proc close(socket: Socket; flags = {SafeDisconn}) 1215
  79. nim toCInt net.html#toCInt,SOBool proc toCInt(opt: SOBool): cint 1276
  80. nim getSockOpt net.html#getSockOpt,Socket,SOBool proc getSockOpt(socket: Socket; opt: SOBool; level = SOL_SOCKET): bool 1289
  81. nim getLocalAddr net.html#getLocalAddr,Socket proc getLocalAddr(socket: Socket): (string, Port) 1295
  82. nim getPeerAddr net.html#getPeerAddr,Socket proc getPeerAddr(socket: Socket): (string, Port) 1302
  83. nim setSockOpt net.html#setSockOpt,Socket,SOBool,bool proc setSockOpt(socket: Socket; opt: SOBool; value: bool; level = SOL_SOCKET) 1308
  84. nim connectUnix net.html#connectUnix,Socket,string proc connectUnix(socket: Socket; path: string) 1319
  85. nim bindUnix net.html#bindUnix,Socket,string proc bindUnix(socket: Socket; path: string) 1328
  86. nim gotHandshake net.html#gotHandshake,Socket proc gotHandshake(socket: Socket): bool 1338
  87. nim hasDataBuffered net.html#hasDataBuffered,Socket proc hasDataBuffered(s: Socket): bool 1348
  88. nim recv net.html#recv,Socket,pointer,int proc recv(socket: Socket; data: pointer; size: int): int 1397
  89. nim recv net.html#recv,Socket,pointer,int,int proc recv(socket: Socket; data: pointer; size: int; timeout: int): int 1479
  90. nim recv net.html#recv,Socket,string,int,int proc recv(socket: Socket; data: var string; size: int; timeout = -1;\n flags = {SafeDisconn}): int 1497
  91. nim recv net.html#recv,Socket,int,int proc recv(socket: Socket; size: int; timeout = -1; flags = {SafeDisconn}): string 1532
  92. nim readLine net.html#readLine,Socket,string,int proc readLine(socket: Socket; line: var string; timeout = -1; flags = {SafeDisconn};\n maxLength = MaxLineLength) 1577
  93. nim recvLine net.html#recvLine,Socket,int proc recvLine(socket: Socket; timeout = -1; flags = {SafeDisconn};\n maxLength = MaxLineLength): string 1634
  94. nim recvFrom net.html#recvFrom,Socket,string,int,T,Port,int32 proc recvFrom[T: string | IpAddress](socket: Socket; data: var string; length: int;\n address: var T; port: var Port; flags = 0'i32): int 1657
  95. nim skip net.html#skip,Socket,int,int proc skip(socket: Socket; size: int; timeout = -1) 1705
  96. nim send net.html#send,Socket,pointer,int proc send(socket: Socket; data: pointer; size: int): int 1720
  97. nim send net.html#send,Socket,string,int proc send(socket: Socket; data: string; flags = {SafeDisconn}; maxRetries = 100) 1739
  98. nim `&=` net.html#&=.t,Socket,typed template `&=`(socket: Socket; data: typed) 1771
  99. nim trySend net.html#trySend,Socket,string proc trySend(socket: Socket; data: string): bool 1775
  100. nim sendTo net.html#sendTo,Socket,string,Port,pointer,int,Domain,int32 proc sendTo(socket: Socket; address: string; port: Port; data: pointer; size: int;\n af: Domain = AF_INET; flags = 0'i32) 1780
  101. nim sendTo net.html#sendTo,Socket,string,Port,string proc sendTo(socket: Socket; address: string; port: Port; data: string) 1815
  102. nim sendTo net.html#sendTo,Socket,IpAddress,Port,string,int32 proc sendTo(socket: Socket; address: IpAddress; port: Port; data: string;\n flags = 0'i32): int 1828
  103. nim isSsl net.html#isSsl,Socket proc isSsl(socket: Socket): bool 1853
  104. nim getFd net.html#getFd,Socket proc getFd(socket: Socket): SocketHandle 1860
  105. nim IPv4_any net.html#IPv4_any proc IPv4_any(): IpAddress 1876
  106. nim IPv4_loopback net.html#IPv4_loopback proc IPv4_loopback(): IpAddress 1883
  107. nim IPv4_broadcast net.html#IPv4_broadcast proc IPv4_broadcast(): IpAddress 1889
  108. nim IPv6_any net.html#IPv6_any proc IPv6_any(): IpAddress 1895
  109. nim IPv6_loopback net.html#IPv6_loopback proc IPv6_loopback(): IpAddress 1902
  110. nim `==` net.html#==,IpAddress,IpAddress proc `==`(lhs, rhs: IpAddress): bool 1911
  111. nim `$` net.html#$,IpAddress proc `$`(address: IpAddress): string 1922
  112. nim dial net.html#dial,string,Port proc dial(address: string; port: Port; protocol = IPPROTO_TCP; buffered = true): owned(\n Socket) 1990
  113. nim connect net.html#connect,Socket,string proc connect(socket: Socket; address: string; port = Port(0)) 2051
  114. nim connect net.html#connect,Socket,string,int proc connect(socket: Socket; address: string; port = Port(0); timeout: int) 2126
  115. nim getPrimaryIPAddr net.html#getPrimaryIPAddr proc getPrimaryIPAddr(dest = parseIpAddress("8.8.8.8")): IpAddress 2158
  116. heading SSL net.html#ssl SSL 0
  117. heading SSL on Windows net.html#ssl-on-windows SSL on Windows 0
  118. heading Examples net.html#examples Examples 0
  119. heading Connecting to a server net.html#examples-connecting-to-a-server Connecting to a server 0
  120. heading Creating a server net.html#examples-creating-a-server Creating a server 0
  121. idx getsockname net.html#getsockname_1 Creating a server 0
  122. idx getpeername net.html#getpeername_1 Creating a server 0
  123. nimgrp getpeercertificates net.html#getPeerCertificates-procs-all proc 889
  124. nimgrp sendto net.html#sendTo-procs-all proc 1780
  125. nimgrp connect net.html#connect-procs-all proc 2051
  126. nimgrp recv net.html#recv-procs-all proc 1397
  127. nimgrp send net.html#send-procs-all proc 1720
  128. nimgrp newsocket net.html#newSocket-procs-all proc 265