MCPcopy Create free account
hub / github.com/distributed/sers / SetReadParams

Method SetReadParams

sers.go:53–53  ·  view source on GitHub ↗

SetReadParams sets the minimum number of bytes to read and a read timeout in seconds. These parameters roughly correspond to the UNIX termios concepts of VMIN and VTIME.

(minread int, timeout float64)

Source from the content-addressed store, hash-verified

51 // timeout in seconds. These parameters roughly correspond to the
52 // UNIX termios concepts of VMIN and VTIME.
53 SetReadParams(minread int, timeout float64) error
54
55 // SetBreak turns on the generation of a break condition if on == true,
56 // otherwise it clear the break condition.

Callers 1

readFirstBytesFromPortFunction · 0.65

Implementers 2

baseportsers_termios.go
serialPortsers_windows.go

Calls

no outgoing calls

Tested by 1

readFirstBytesFromPortFunction · 0.52