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
, average
, collect
, collect
, collect
, contains
, count
, dump
, each
, eachWithIndex
, equals
, every
, every
, find
, find
, findAll
, findAll
, findIndexOf
, findIndexOf
, findIndexValues
, findIndexValues
, findLastIndexOf
, findLastIndexOf
, findResult
, findResult
, flatten
, getAt
, getMetaClass
, getMetaPropertyValues
, getProperties
, grep
, grep
, groupBy
, groupBy
, hasProperty
, identity
, inject
, inject
, inspect
, invokeMethod
, is
, isCase
, iterator
, join
, metaClass
, print
, print
, printf
, printf
, println
, println
, println
, putAt
, respondsTo
, respondsTo
, setMetaClass
, size
, split
, sprintf
, sprintf
, stream
, sum
, sum
, tap
, toArrayString
, toSpreadMap
, toString
, use
, use
, use
, with
, 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