{"id":21401950,"url":"https://github.com/bigjk/telly","last_synced_at":"2025-10-06T20:49:56.475Z","repository":{"id":57570560,"uuid":"346384184","full_name":"BigJk/telly","owner":"BigJk","description":"Minimal Telnet Server in go","archived":false,"fork":false,"pushed_at":"2021-03-10T14:55:52.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-03T20:08:45.386Z","etag":null,"topics":["golang","mud","telnet","telnet-protocol","telnet-server"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BigJk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-10T14:32:15.000Z","updated_at":"2022-09-18T14:24:40.000Z","dependencies_parsed_at":"2022-09-17T05:41:06.883Z","dependency_job_id":null,"html_url":"https://github.com/BigJk/telly","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BigJk/telly","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BigJk%2Ftelly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BigJk%2Ftelly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BigJk%2Ftelly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BigJk%2Ftelly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BigJk","download_url":"https://codeload.github.com/BigJk/telly/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BigJk%2Ftelly/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278678423,"owners_count":26027049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","mud","telnet","telnet-protocol","telnet-server"],"created_at":"2024-11-22T15:33:46.930Z","updated_at":"2025-10-06T20:49:56.434Z","avatar_url":"https://github.com/BigJk.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# telly\nMinimal Telnet Server I wrote for a MUD backend. \n\n## Get it\n```\ngo get github.com/BigJk/telly\n```\n\n## Example\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/BigJk/telly\"\n\t\"time\"\n)\n\nfunc main() {\n\tlistener, err := telly.Listen(\":5050\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\t\n\t// If no message is received for 60 seconds close connection.\n\tlistener.SetTimeout(time.Second * 60)\n\n\tfor {\n\t\tif conn, err := listener.Accept(); err == nil {\n\t\t\tconn.SetMessageHandler(func(conn *telly.Conn, s string) {\n\t\t\t\tfmt.Println(s)\n\t\t\t\t_ = conn.Write(s)\n\t\t\t})\n\n\t\t\tconn.SetDisconnectHandler(func(conn *telly.Conn) {\n\t\t\t\tfmt.Println(conn.RemoteAddr(), \"disconnected\")\n\t\t\t})\n\n\t\t\tfmt.Println(conn.RemoteAddr(), \"connected\")\n\t\t}\n\t}\n}\n```\n\n## Why didn't I use ``github.com/reiver/go-telnet``?\n\nThe Project might be RFC conform but seems abondoned and doesn't support two crucial features. There is no clear way to close a connection from the server side and no support for custom timeouts. Without custom timeouts it's easy to overflow a server with idle connections.\n\n## Used References\n- https://github.com/Frimkron/mud-pi/blob/master/mudserver.py#L327\n- http://pcmicro.com/netfoss/telnet.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigjk%2Ftelly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbigjk%2Ftelly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigjk%2Ftelly/lists"}