https://github.com/namoshizun/udp-tcp-frame-streaming
https://github.com/namoshizun/udp-tcp-frame-streaming
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/namoshizun/udp-tcp-frame-streaming
- Owner: namoshizun
- Created: 2024-02-04T13:54:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-01T01:13:34.000Z (over 1 year ago)
- Last Synced: 2024-03-01T08:28:53.838Z (over 1 year ago)
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## UDP vs TCP Socket for Frame Streaming
Simple programs to compare the performance of UDP and TCP sockets for frame streaming.
**Note**:
Linux and MacOS have limited UDP buffer size. You may need to increase the buffer size to get better performance:
- MacOS: `sudo sysctl -w net.inet.udp.maxdgram=65535`
- Linux:
- `sudo sysctl -w net.core.rmem_max=26214400`
- `sudo sysctl -w net.core.rmem_default=26214400`