new ThreadServer()
- Description:
Handle socket as a server
- Source:
Methods
addTask()
- Description:
Add task to the iddle process.
If none is iddle, will wait until there is iddle process
- Source:
addTask()
- Description:
Add task to the iddle process.
If none is iddle, will wait until there is iddle process
- Source:
addTask()
- Description:
Add task to the iddle process.
If none is iddle, will wait until there is iddle process
- Source:
getIddleThread()
- Description:
Get random iddle task
- Source:
getIddleThread()
- Description:
Get random iddle task
- Source:
getReadyState()
- Description:
Return true if the server is ready
- Source:
getReadyState()
- Description:
Return true if the server is ready
- Source:
startThread(num, options)
- Description:
Open n number of thread
If some thread are already opened, will make sure that the opened thread not less then the number
- Source:
Parameters:
Name | Type | Default | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
num |
1
|
|||||||||||||||||
options |
Object |
Properties
|
startThread(num, options)
- Description:
Open n number of thread
If some thread are already opened, will make sure that the opened thread not less then the number
- Source:
Parameters:
Name | Type | Default | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
num |
1
|
|||||||||||||||||
options |
Object |
Properties
|