class

SCTP::Address

Inherits Reference < Object

Represents an SCTP address with optional multi-homing support

Constructors

from_sockaddr(addr : LibUsrSCTP::SockaddrIn) : Address

Convert from sockaddr structure

Source
new(host : String, port : Int32)

Create a new SCTP address

Source
parse(address : String) : Address

Parse an address string (e.g., "127.0.0.1:3000")

Source

Instance methods

host
Source
port
Source
to_s(io : IO)

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>
Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
to_sockaddr_in

Convert to sockaddr structure for IPv4

Source