{"id":17099710,"url":"https://github.com/halilb/irc-client","last_synced_at":"2025-10-09T06:09:03.461Z","repository":{"id":69722756,"uuid":"47503209","full_name":"halilb/irc-client","owner":"halilb","description":null,"archived":false,"fork":false,"pushed_at":"2015-12-13T22:02:31.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T18:19:24.804Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/halilb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-06T15:54:35.000Z","updated_at":"2015-12-06T15:54:56.000Z","dependencies_parsed_at":"2023-03-11T07:03:25.531Z","dependency_job_id":null,"html_url":"https://github.com/halilb/irc-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halilb%2Firc-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halilb%2Firc-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halilb%2Firc-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halilb%2Firc-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/halilb","download_url":"https://codeload.github.com/halilb/irc-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245145642,"owners_count":20568164,"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","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":[],"created_at":"2024-10-14T15:11:09.582Z","updated_at":"2025-10-09T06:08:58.413Z","avatar_url":"https://github.com/halilb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# irc-client\n\nThis is the client code running a simple messaging protocol.\n\n### Requirements\n\nThis client works well with Python 2.7.10. Other versions are not tested.\nYou also need to have [PyQt](https://wiki.python.org/moin/PyQt) on your computer as it is used to build client's interface.\n\n### Running\n\nYou must provide server hostname and port address.\n\n```bash\npython main.py \u003chostname\u003e \u003cportaddress\u003e\n```\n\n### Tests\n\nYou have to install [nose](https://nose.readthedocs.org/en/latest/) to run unit tests.\n\n```bash\npip install nose\npython main.py \u003chostname\u003e \u003cportaddress\u003e\n```\n\n### Code Structure\n\nThere are 3 main components running on different threads.\n\n#### 1.Interface\nInterface is built on top of the PyQt library. It draws a desktop interface for user input, incoming messages and user list.\n\nWhen user clicks send button, user's message is put in threadQueue without any manipulation. That message is parsed in **Writer** object.\n \nInterface also consumes **screenQueue** form transforming network messages to end user messages according to the chat protocol.\n\n#### 2. Writer\nThis component communicates with Interface via threadQueue. It parses user messages into protocol messages and send it over TCP. \n\n#### 3. Reader\nThis component listens server messages and parses them into **IncomingMessage** object. It decides the type of message and related username. After parsing process, it puts IncomingMessage object to screenQueu.\n\n### Server Problems\n\nI experienced 2 problems with the server:\n- Server sometimes closes the TCP connection when i try to register a new user name(/nick halil)\n- Server does not end messages with new line character(\\n). This prevents me from parsing multiple messages within one TCP stream.(TICSAY halil:hello)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalilb%2Firc-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhalilb%2Firc-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalilb%2Firc-client/lists"}