
Security News
Rspack Introduces Rslint, a TypeScript-First Linter Written in Go
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
= TServer
Author:: Yann Lugrin (mailto:yann.lugrin@sans-savoir.net) Copyright:: Copyright (c) 2007 Yann Lugrin Licence:: MIT[link://files/LICENSE.html] Version:: 0.2.0
This librarie implements a persistant multithread TCP server, it is alternative to 'gserver'[http://ruby-doc.org/stdlib/libdoc/gserver/rdoc/index.html] standard librarie. TServer is designed to be inherited by your custom server class. The server can accepts multiple simultaneous connections from clients, can be configured to have a maximum connection and a minimum permanent listener thread. Can be imediatly stopped, gracefull shutdown (dont accept new connection but wait established connection is closed before realy stop) or reloaded (terminate listener after established connection is closed and respawn new).
== Example
This example can receive simple string from telnet connection
require 'tserver'
class ExampleServer < TServer def process connection.each do |line| break if line =~ /(quit|exit|close)/
log '> ' + line.chomp
conn.puts Time.now.to_s + '> ' + line.chomp
end
end
end
server = ExampleServer.new server.verbose = true
Signal.trap('SIGINT') do server.shutdown end
server.start(true)
FAQs
Unknown package
We found that tserver demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.