Categorygithub.com/danlapid/socketbuffer
modulepackage
1.0.0
Repository: https://github.com/danlapid/socketbuffer.git
Documentation: pkg.go.dev

# README

socketbuffer

Sync files between different hosts over a one way network link such as a Data Diode

Test Status Coverage Status License: MIT

Exports

  • GetReadBuffer: returns the size of the rx buffer
  • GetAvailableBytes: returns the amount of bytes on the listening socket

Works on linux, windows and mac

Go 1.13-1.19

# Functions

Under linux FIONREAD returns the size of the waiting datagram if one exists and not the total available bytes See: https://manpages.debian.org/bullseye/manpages/udp.7.en.html#FIONREAD Sadly the only way to get the available bytes under linux is through proc/udp.
No description provided by the author
No description provided by the author

# Type aliases

This contains generic data structures for both udp and tcp sockets.