class SCTPServer

Defined in:

sctp/variants/sctp_server.cr

Constructors

Instance methods inherited from class SCTPBaseSocket

address(host, port, family = Socket::Family::INET6) address, addressv4(host, port) addressv4, addressv6(host, port) addressv6, autoclose=(seconds : Int32 | Nil) autoclose=, bind(host, port, type : Socket::Type, dns_timeout = nil, &) bind, listen(backlog = 128) listen, on_message(stream_no : UInt16 | Int32, source : IPAddress, &callback : SCTPMessage -> )
on_message(source : IPAddress, &callback : SCTPMessage -> )
on_message(stream_no : UInt16 | Int32, &callback : SCTPMessage -> )
on_message(&on_message : SCTPMessage -> )
on_message(stream_no : UInt16 | Int32, source : IPAddress, none : Nil)
on_message(source : IPAddress, none : Nil)
on_message(stream_no : UInt16 | Int32, none : Nil)
on_message
, process process, receive(slice : Slice(UInt8)) : Tuple(Int32, UInt16, IPAddress)
receive : SCTPMessage
receive
, send(slice : Slice(UInt8), stream_no : UInt16, to : IPAddress) : Int32
send(data, stream_no : Int32 | UInt16, to : IPAddress) : Int32
send
, set_socketopt(option : Int32, value) set_socketopt

Constructor methods inherited from class SCTPBaseSocket

new(family : Socket::Family, type : Socket::Type)
new(fd : Int32, type : Socket::Type)
new

Constructor Detail

def self.new(host, port, backlog = 128) #

[View source]