Adam Strzelecki
be991ed413
Rename rawsockets module to nativesockets
...
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.
2015-10-03 19:45:41 +02:00
Aman Gupta
8edbef346a
raise with error message
2015-09-23 17:15:13 -07:00
Aman Gupta
4a715b8e08
disable SSLv2
2015-09-23 12:03:14 -07:00
Aman Gupta
5f95c4e055
avoid referencing undefined SSLv2_method on mac osx
2015-09-22 19:54:15 -07:00
Dominik Picheta
4da5e47414
Implements getPeerAddr/getPeerName on Windows and adds IDX.
2015-09-15 10:37:16 +01:00
Reimer Behrends
b9df1323f7
Provide access to getsockname()/getpeername().
...
This patch implements procedures getLocalAddr() and getPeerAddr() that
return the results of getsockname() and getpeername(), respectively, as
pairs (string, Port) for both Socket and SockedHandle.
2015-09-14 01:42:46 +02:00
Sloane Simmons
b124b8b4bb
Use raiseOSError with additionalInfo parameter from devel
2015-07-04 09:29:37 -05:00
Dominik Picheta
615defb1a9
Fixes socket problems on Windows and normalises some names.
...
Ref #2976 . Ref #2003 . See news.txt for details.
2015-06-29 20:11:21 +01:00
Dominik Picheta
68f583ddb7
Adjustments to #2610 .
2015-06-22 21:40:38 +01:00
Dominik Picheta
8853dfb353
Merge branch 'starttls' of https://github.com/wiml/Nim into wiml-starttls
...
Conflicts:
lib/pure/net.nim
2015-06-22 21:34:21 +01:00
Dominik Picheta
c5708ef1ee
Merge branch 'exportnewsocket' of https://github.com/boopcat/Nim into boopcat-exportnewsocket
...
Conflicts:
lib/pure/asyncnet.nim
2015-06-05 15:06:02 +01:00
pdw
6914244f30
lib/pure/e-o - Dropped 'T' from types
2015-06-04 13:18:35 +02:00
boopcat
af07db2829
Export newSocket(fd) from net.nim and standardize args in net/asyncnet
...
Exporting newSocket(fd) mimics what asyncnet does and lets you pass in your
own socket FD.
newSocket*(fd) and newAsyncSocket*(fd) now both take "buffered" instead of
"isBuff" and defaults to true to match the other constructors on both.
2015-05-30 11:01:15 +00:00
pdw
cb6f867495
Fixed 'milliseconds' spelling in code and docs
2015-05-15 20:15:12 -05:00
Wim Lewis
df1cdced1d
Make the post-connection wrapSocket() call available in both the synchronous and asynchrinous net modules.
2015-04-26 22:10:35 -07:00
Nathan Hoad
e214308cb1
Remvoe the visibility on these, given their forward declarations already
...
specify it.
2015-03-08 13:38:44 +11:00
Nathan Hoad
c179d10897
isIpAddress doesn't have any effects, so fix it up to clean up connect.
2015-03-08 13:37:32 +11:00
Nathan Hoad
5978625c12
Make IP address checking more obvious, and add tests for the net module.
2015-03-07 12:37:52 +11:00
Nathan Hoad
d27f40d9b1
Add SNI support to client and server sockets.
2015-03-07 00:48:32 +11:00
wiffel
72e4e7291f
Add SSLFree after SLShutdown to prevent memory leak
2015-02-24 22:01:07 +01:00
Dominik Picheta
1af45b78a7
Remove pointless winlean import in net module.
2015-02-21 21:32:34 +00:00
Varriount
ef44fd344b
Update net.nim - fix #2193
...
Fixes number #2193 and resolves some ambiguity issues
2015-02-21 15:12:57 -05:00
Dominik Picheta
a853d9c3e3
Sockets now save a copy of osLastError to work around #2191 .
2015-02-21 17:17:54 +00:00
Federico Ceratto
657dca5c3b
Fix typos
2015-02-15 16:20:32 +00:00
Federico Ceratto
c95f6f117a
Fix typos
2015-02-15 16:06:06 +00:00
Araq
10335fd726
fixed minor bugs; cleaned up tests
2015-02-12 14:56:56 +01:00
Araq
20774ad43c
fixes the integer conversion regressions
2015-01-13 20:56:31 +01:00
Araq
f7ef00aa3b
make net.nim compile again (quick workaround for a regression)
2015-01-13 13:55:56 +01:00
Andreas Rumpf
5bd2889267
Merge pull request #1889 from ramnes/devel
...
Happy new year!
2015-01-07 14:14:43 +01:00
Araq
b907fac5f9
minor cleanups
2015-01-07 02:41:50 +01:00
Guillaume Gelin
3119fe087d
Happy new year!
2015-01-06 15:26:33 +01:00
Dominik Picheta
c35182aca7
Fixes #1745 .
2014-12-26 19:13:27 +00:00
Will Szumski
1b614ffc80
ensure file descriptor is closed
2014-12-18 00:45:02 +00:00
Will Szumski
ff24ca9919
realised extra parameter was unnecessary
2014-12-17 23:40:10 +00:00
Will Szumski
d0ea2bdf5b
improved error msgs and refactored close in the net module
2014-12-17 23:34:55 +00:00
def
f52fd8785f
Fix some deprecation warnings caused by renames
2014-11-13 21:34:46 +01:00
Dominik Picheta
13e3c0d5bb
Implement SO_REUSEADDR for asyncnet and asynchttpserver.
2014-11-07 14:48:11 +00:00
Araq
73ff0432dc
docgen works on linux
2014-10-27 00:12:36 +01:00
Dominik Picheta
867dfbfbfa
Adds socket creation for arbitrary domain, type and protocol.
2014-09-18 17:03:23 +01:00
Dominik Picheta
8b8841a6c1
NimFix on net and rawsockets modules.
2014-09-13 20:39:18 +01:00
Dominik Picheta
ac01ed5812
Fix net module on Linux.
2014-08-31 20:15:21 +01:00
Dominik Picheta
bb1e87ce4d
Async SSL support.
2014-08-31 12:55:04 +01:00
Dominik Picheta
29ec795580
Fixes SSL case sensitive issues.
2014-08-30 18:00:05 +01:00
Dominik Picheta
f6dc76cfe3
Case sensitivity fixes for Posix.
2014-08-30 15:52:04 +01:00
Dominik Picheta
cff2a0c0b4
Case fixes for network modules.
2014-08-30 11:59:08 +01:00
Araq
fc5153e9b0
big rename
2014-08-28 00:37:15 +02:00
Araq
27869b6c7b
big rename
2014-08-28 00:36:14 +02:00
Araq
11b6958755
big rename
2014-08-27 23:42:51 +02:00
Dominik Picheta
aa73288142
Export == from net module for TPort.
2014-08-17 19:19:20 +01:00
Dominik Picheta
a2ec3c91f1
Fix asyncnet example. Rearrange net code.
2014-08-10 12:28:17 +01:00