Skip to content

Commit

Permalink
chore: remove exposed attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
lchenut committed Sep 12, 2024
1 parent 413f323 commit 857e5da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions webrtc/sctp/sctp_connection.nim
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ type
params*: SctpMessageParameters

SctpConn* = ref object
conn*: DtlsConn
conn: DtlsConn
state*: SctpState
onClose: seq[SctpConnOnClose]
connectEvent*: AsyncEvent
acceptEvent*: AsyncEvent
readLoop: Future[void].Raising([CancelledError, WebRtcError])
sctpSocket*: ptr socket
dataRecv*: AsyncQueue[SctpMessage]
dataRecv: AsyncQueue[SctpMessage]
sendQueue: seq[byte]

proc remoteAddress*(self: SctpConn): TransportAddress =
Expand Down Expand Up @@ -77,8 +77,8 @@ template usrsctpAwait*(self: SctpConn, body: untyped): untyped =
# -- usrsctp send and receive callback --

proc recvCallback*(sock: ptr socket, data: pointer, flags: cint) {.cdecl.} =
# Callback procedure called when we receive data after
# connection has been established.
# Callback procedure called when we receive data after a connection
# has been established.
let
conn = cast[SctpConn](data)
events = usrsctp_get_events(sock)
Expand Down

0 comments on commit 857e5da

Please sign in to comment.