{"id":28739047,"url":"https://github.com/cwlowder/nettest","last_synced_at":"2025-07-10T22:33:04.249Z","repository":{"id":82386734,"uuid":"100530866","full_name":"cwlowder/netTest","owner":"cwlowder","description":"A simple command line tool that can be used to send/receive small packets over tcp","archived":false,"fork":false,"pushed_at":"2018-04-14T04:47:13.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-16T05:16:35.019Z","etag":null,"topics":["command-line-tool","network","tcp"],"latest_commit_sha":null,"homepage":"","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/cwlowder.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-08-16T20:41:23.000Z","updated_at":"2018-06-25T23:44:26.000Z","dependencies_parsed_at":"2023-03-12T15:33:46.021Z","dependency_job_id":null,"html_url":"https://github.com/cwlowder/netTest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cwlowder/netTest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwlowder%2FnetTest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwlowder%2FnetTest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwlowder%2FnetTest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwlowder%2FnetTest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cwlowder","download_url":"https://codeload.github.com/cwlowder/netTest/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwlowder%2FnetTest/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264677404,"owners_count":23648125,"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":["command-line-tool","network","tcp"],"created_at":"2025-06-16T05:16:32.669Z","updated_at":"2025-07-10T22:33:04.242Z","avatar_url":"https://github.com/cwlowder.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# netTest\nThis python script allows for the sending and receiving of packets over tcp\u003cbr/\u003e\nThis program can be run with `python3 netTest.py`\n\n### Commands\ncommands can be joined together using an `\u0026` like so:\u003cbr/\u003e\n`connect \u0026 listen`\n#### list\nUsed to list either `commands` or `receives`.\u003cbr/\u003e\nexample: `list commands`\n#### connect\nUsed to connect to what ever host \u0026 port is set to\nexample: `connect`\u003cbr/\u003e\n#### disconnect\nUsed to disconnect from the current connection\n#### listen\nThis command starts listening to the data being received. Requires an active connection.\u003cbr/\u003e\nexample: `listen`\u003cbr/\u003e\n#### send\nSends whatever command is given as an argument. Requires an active connection.\u003cbr/\u003e\nexample: `send test_command`\u003cbr/\u003e\n#### get\nUsed to get the properties and the format of the commands and receives\u003cbr/\u003e\nexample: `get host`\u003cbr/\u003e\nexample: `get receive 4`\n#### set\nUsed to set the properties and the format of the commands and receives\u003cbr/\u003e\nexample: `set port 25565`\u003cbr/\u003e\nexample: `set command test 10`\u003cbr/\u003e\n###### Note:\nsetting receives is more complicated it involves three arguments\n* `-l` the length of the the receive\n* `-n` the name of the receive\n* `-f` the format of the incoming receive\u003cbr/\u003e\n\nTogether they can look like this:\u003cbr/\u003e\n`set receive -l 4 -n test_command -f [uint16]`\n### Format of Receive\nFormats are constructed using the following syntax:\u003cbr/\u003e\n`[type#number]`\u003cbr/\u003e\ntype can be one of the following:\n* uint8\n* uint16\n* uint32\n* float\n* double\n* long\n* char\n* byte\n\nThe `#number` represents the number of consecutive numbers that will be received of that type.\nWhen omitted, it is implied only a single value exists. Multiple of these types can be strung together.\nAn example of this: `[uint8#2][double][uint32#4]`. This statement implies that 2 uint8s, then a double, then 4 uint32s will be received.\n\n### Properties\nThis is a list of the properties that can be set, what they affect, and what type(int, float, etc) can they be set to.\n* host\n    * The host to be connected to\n    * Can be set to a string\n* port\n    * The port to be connected to\n    * Can be set to an int\n* print\n    * Should the data received when listening be printed?\n    * Can be set to a boolean\n* outfile\n    * The file that will be printed to and overwritten\n    * Can be set to a string\n* commandidbytes\n    * The number of bytes that make up the id for the sent command\n    * Can be set to an int\n* receiveidbytes\n    * The number of bytes that make up the id for receives\n    * Can be set to an int\n\nThe rest of the properties should not be edited:\n* sizeofuint8\n    * Number of bytes in an uint8\n    * Can be set to an int\n* sizeofuint16\n    * Number of bytes in an uint16\n    * Can be set to an int\n* sizeofuint32\n    * Number of bytes in an uint32\n    * Can be set to an int\n* sizeoffloat\n    * Number of bytes in a float\n    * Can be set to an int\n* sizeofdouble\n    * Number of bytes in a double\n    * Can be set to an int\n* sizeoflong\n    * Number of bytes in a long\n    * Can be set to an int\n* sizeofchar\n    * Number of bytes for a char, a series of chars make up a string\n    * Can be set to an int\n* sizeofbyte\n    * Number of bytes in a byte\n    * Can be set to an int\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwlowder%2Fnettest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcwlowder%2Fnettest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwlowder%2Fnettest/lists"}