summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2019-07-24 22:18:30 +0200
committert3sserakt <t3ss@posteo.de>2019-07-24 22:18:30 +0200
commit38c51715cfe0b2c6cdc662cffcc8de2eec8d28a9 (patch)
tree1945cbfb6ed8b975f2cd8774f54c7515fcbfbab3
parent1fce7e265d2c896cc5c385c4cd818e399121f822 (diff)
removed cadet option
-rw-r--r--src/gnunet_nim/cadet.nim1
-rw-r--r--src/gnunet_nim/gnunet_cadet_service.nim17
2 files changed, 0 insertions, 18 deletions
diff --git a/src/gnunet_nim/cadet.nim b/src/gnunet_nim/cadet.nim
index 3b4de5f..b079f52 100644
--- a/src/gnunet_nim/cadet.nim
+++ b/src/gnunet_nim/cadet.nim
@@ -122,7 +122,6 @@ proc createChannel*(handle: ref CadetHandle,
addr channel[],
addr channel.peer,
unsafeAddr port,
- GNUNET_CADET_OPTION_RELIABLE,
nil,
channelDisconnectCb,
unsafeAddr handlers[0])
diff --git a/src/gnunet_nim/gnunet_cadet_service.nim b/src/gnunet_nim/gnunet_cadet_service.nim
index 5dc6e9a..a66d57e 100644
--- a/src/gnunet_nim/gnunet_cadet_service.nim
+++ b/src/gnunet_nim/gnunet_cadet_service.nim
@@ -19,28 +19,12 @@ const
type
GNUNET_CADET_Handle* {.bycopy.} = object
-
-
type
GNUNET_CADET_Channel* {.bycopy.} = object
-
-
type
GNUNET_CADET_Port* {.bycopy.} = object
-
-
-
-type
- GNUNET_CADET_ChannelOption* {.size: sizeof(cint).} = enum
- GNUNET_CADET_OPTION_DEFAULT = 0x00000000,
- GNUNET_CADET_OPTION_NOBUFFER = 0x00000001,
- GNUNET_CADET_OPTION_RELIABLE = 0x00000002,
- GNUNET_CADET_OPTION_OUT_OF_ORDER = 0x00000004,
- GNUNET_CADET_OPTION_PEER = 0x00000008
-
-
type
GNUNET_CADET_ConnectEventHandler* = proc (cls: pointer;
@@ -77,7 +61,6 @@ proc GNUNET_CADET_close_port*(p: ptr GNUNET_CADET_Port) {.cdecl,
proc GNUNET_CADET_channel_create*(h: ptr GNUNET_CADET_Handle; channel_cls: pointer;
destination: ptr GNUNET_PeerIdentity;
port: ptr GNUNET_HashCode;
- options: GNUNET_CADET_ChannelOption;
window_changes: GNUNET_CADET_WindowSizeEventHandler; disconnects: GNUNET_CADET_DisconnectEventHandler;
handlers: ptr GNUNET_MQ_MessageHandler): ptr GNUNET_CADET_Channel {.
cdecl, importc: "GNUNET_CADET_channel_create", dynlib: libname.}