Return type | Name and parameters |
---|---|
Socket
|
accept(boolean runInANewThread, Closure closure)
Accepts a connection and passes the resulting Socket to the closure which runs in a new Thread or the calling thread, as needed. |
Socket
|
accept(Closure closure)
Accepts a connection and passes the resulting Socket to the closure which runs in a new Thread. |
addShutdownHook
, any
, any
, asBoolean
, asType
, collect
, collect
, collect
, dump
, each
, eachWithIndex
, every
, every
, find
, find
, findAll
, findAll
, findIndexOf
, findIndexOf
, findIndexValues
, findIndexValues
, findLastIndexOf
, findLastIndexOf
, findResult
, findResult
, getAt
, getMetaClass
, getMetaPropertyValues
, getProperties
, grep
, grep
, hasProperty
, identity
, inject
, inject
, inspect
, invokeMethod
, is
, isCase
, iterator
, metaClass
, print
, print
, printf
, printf
, println
, println
, println
, putAt
, respondsTo
, respondsTo
, setMetaClass
, split
, sprintf
, sprintf
, toString
, use
, use
, use
, with
, withTraits
Accepts a connection and passes the resulting Socket to the closure which runs in a new Thread or the calling thread, as needed.
runInANewThread
- This flag should be true, if the closure should be invoked in a new thread, else false.closure
- a ClosureAccepts a connection and passes the resulting Socket to the closure which runs in a new Thread.
closure
- a Closure