Sha256: b83e13e1b8bfa240381bed6c44c5b5b45972c08b3c597a8d3010571c3134c159
Contents?: true
Size: 356 Bytes
Versions: 5
Compression:
Stored size: 356 Bytes
Contents
require 'sctp/socket' # Adjust IP addresses as needed begin port = 62324 socket = SCTP::Socket.new socket.bind(:port => port, :addresses => ['10.0.5.5', '10.0.6.5']) socket.set_initmsg(:output_streams => 5, :input_streams => 5, :max_attempts => 4) socket.listen while true info = socket.recvmsg p info end ensure socket.close end
Version data entries
5 entries across 5 versions & 1 rubygems