socket :: Socket :: defaultinit
# A general Socket, either TCP or UDP
abstract class Socket
# Underlying C socket
private var native: NativeSocket is noinit
# Is this socket closed?
var closed = false
# Set whether calls to `accept` are blocking
fun blocking=(value: Bool)
do
# We use the opposite from the native version as the native API
# is closer to the C API. In the Nity API, we use a positive version
# of the name.
native.non_blocking = not value
end
end
lib/socket/socket.nit:23,1--40,3