Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- start
- | queue connection |
- self running: true.
- queue := ConnectionQueue portNumber: 1024 queueLength: 50.
- [
- [self running] whileTrue:
- [
- connection := queue getConnectionOrNil.
- connection ifNotNil: [self new serve: connection].
- Processor yield.
- ]
- ] fork.
Add Comment
Please, Sign In to add comment