{"id":19885305,"url":"https://github.com/demkeys/udpfiletransfer","last_synced_at":"2025-08-19T11:14:13.276Z","repository":{"id":228563832,"uuid":"774338784","full_name":"Demkeys/UDPFileTransfer","owner":"Demkeys","description":"Send or receive files over UDP. ","archived":false,"fork":false,"pushed_at":"2024-03-19T22:24:55.000Z","size":44,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-06T21:58:05.921Z","etag":null,"topics":["data-transfer","file-tr","network","networking","python","udp","udp-socket"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Demkeys.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-19T11:28:39.000Z","updated_at":"2024-03-22T06:18:35.000Z","dependencies_parsed_at":"2024-11-12T17:36:52.642Z","dependency_job_id":"674c8057-6e7f-4043-b9a0-e9f537ed3949","html_url":"https://github.com/Demkeys/UDPFileTransfer","commit_stats":null,"previous_names":["demkeys/udpfiletransfer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Demkeys/UDPFileTransfer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Demkeys%2FUDPFileTransfer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Demkeys%2FUDPFileTransfer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Demkeys%2FUDPFileTransfer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Demkeys%2FUDPFileTransfer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Demkeys","download_url":"https://codeload.github.com/Demkeys/UDPFileTransfer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Demkeys%2FUDPFileTransfer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271143398,"owners_count":24706346,"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-08-19T02:00:09.176Z","response_time":63,"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":["data-transfer","file-tr","network","networking","python","udp","udp-socket"],"created_at":"2024-11-12T17:33:54.194Z","updated_at":"2025-08-19T11:14:13.239Z","avatar_url":"https://github.com/Demkeys.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UDPFileTransfer\nSend or receive files over UDP. Start the receiver first, then the sender.\n\n------------------------------------------------------\n\n## Usage:\n- Mode: send, recv\n- Filename\n- Sender address (IP:Port)\n- Recvr address (IP:Port)\n\n## Example:\n```python file_transfer.py send somefile01.txt 192.168.8.111:9510 192.168.8.103:9510```\n\n```python file_transfer.py recv somefile01.txt 192.168.8.111:9510 192.168.8.103:9510```\n\n## NOTE:\nSocket timeout in both modes is set to 20 seconds by default. If you're sending a big file and the program might take longer than 10 seconds to read and process the data, consider increasing the value of sock_timeout in the script, to avoid reaching socket timeout.\n\n------------------------------------------------------\n## Program flow:\n- Receiver starts and waits for SendReq.\n- Sender starts, reads and process file data, and sends SendReq containing chunk count, file checksum and other other data.\n- Receiver receives SendReq, stores the data and sends SendAccept.\n- Sender receives SendAccept and sends FilePkt containing chunk data.\n- Receiver receives FilePkt and sends FilePktAck containing chunk checksum. Sender will use this checksum to confirm that the correct chunk data was received by receiver.\n- Previous two steps repeat until receiver has received last FilePkt.\n- Upon receiving last FilePkt, receiver sends EOFPkt, writes data to file and terminates. EOFPkt contains file data checksum.\n- Sender receives EOFPkt, confirms whether the file data checksum matches, and terminates.\n------------------------------------------------------\n## Message Format:\n- Byte 0: Magic Number\n- Byte 1: MsgType: SendReq, SendAccept, FilePkt, FilePktAck, EOFPkt\n- Byte 2-5: Data Size\n- Byte 6-n: Data (depends on MsgType)\n    - SendReq\n        - Byte 6-9: Total number of FilePkts\n        - Byte 10: Address Data Offset\n        - Byte 11: Address Data Size\n        - Byte 12: FileDataChecksum Offset\n        - Byte 13: FileDataChecksum Size\n        - Byte 14-17: DataBlob Size\n        - Byte 18-n: Data Blob.\n            - NOTE: Offsets and sizes will help you determine how to read data from blob. Offsets are relative to starting position of data blob.\n            - General layout: Address Data | FileDataChecksum\n    - SendAccept\n        - Byte 6: Address Data Size\n        - Byte 7-n: Adress Data\n    - FilePkt\n        - Byte 6-9: ChunkNumber\n        - Byte 10-13: ChunkSize\n        - Byte 14-n: ChunkData\n    - FilePktAck\n        - Byte 6-9: ChunkNumber\n        - Byte 10-13: ChunkDataChecksumSize\n        - Byte 14-n: ChunkDataChecksum (MD5)\n    - EOFPkt\n        - Byte 6-9: Total FilePkts received\n        - Byte 10: FileDataChecksumSize\n        - Byte 11-n: FileDataChecksum (MD5, full file data)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemkeys%2Fudpfiletransfer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdemkeys%2Fudpfiletransfer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemkeys%2Fudpfiletransfer/lists"}