Questions tagged [flow-control]

Flow control is the process of managing the rate of data transmission between two nodes to prevent a fast sender from outrunning a slow receiver.

Flow control is the process of managing the rate of data transmission between two nodes to prevent a fast sender from outrunning a slow receiver. It provides a mechanism for the receiver to control the transmission speed, so that the receiving node is not overwhelmed with data from transmitting node.

166 questions
2
votes
2 answers

Different control flow statement can have the same title

There are 2 different nested loops and each of them has a break statement to break the outer loop under their certain conditions. I wonder if I mark the 2 outer loops with the same title, would this triggers a confusion for the break statement? I…
SLN
  • 4,772
  • 2
  • 38
  • 79
2
votes
1 answer

Serial communication on Linux with flow control enabled - bad behaviour

I wrote common functions in order to manage serial ports, based on the following structure: typedef struct { int PHandle; unsigned int Port; unsigned int BaudRate; unsigned char Parity; unsigned char FlowControl; …
ogs
  • 1,139
  • 8
  • 19
  • 42
2
votes
2 answers

Proper flow control in Prolog without using the non-declarative if-then-else syntax

I would like to check for an arbitrary fact and do something if it is in the knowledge base and something else if it not, but without the ( I -> T ; E)syntax. I have some facts in my knowledge…
2
votes
0 answers

How can I get the remaining socket receive buffer size for UDP in java?

We are developing a reliable-transport-protocol based on UDP. So in order to implement the flow control , we need to know the remaining buffer size. There doesn't seem to be any method in DatagramSocket class which can return the remaining socket…
user3695760
  • 179
  • 1
  • 7
2
votes
1 answer

Flow control on a FT232RL

I have a FT232RL chip. I am using it for usb to RS232 protocol conversion which i need to convert the data and use it further. The "data set" (the device on the other side, like a modem, in my case a MAX485 IC) that i am using cannot be configured.…
Dhruv Reshamwala
  • 139
  • 2
  • 4
  • 14
2
votes
2 answers

boost::asio::serial_port set RTS DTS

I have a serial device and I want to control the RTS and DTR signal during the communication. Basicly the whole communication is based on this two signals. Is there a way to use the boost::asio::serial_port implementation under linux to do this. Is…
lexXxel
  • 111
  • 2
  • 14
2
votes
1 answer

Flow and Error Control at Transport layer

As I understand, Flow Control as well as Error Control is employed both at Transport and Data link layer. If data link guarantees the error-free delivery of the packets, then what kind of errors are caught by the Transport layer? Also, what kind of…
2
votes
1 answer

Serial Port Flow Control

C++ / Windows API When specifying hardware flow control for my rs232 port via SetCommState(), I know this asks the OS to attempt flow control with CTS/DSR signaling. Does this configuration: 1) assume that the serial device at the other end of…
cazicss
  • 25
  • 3
2
votes
2 answers

Behaviour of rabbitmq flow-control when one client of many hangs

I am trying to understand how rabbitmq per-connection flow-control works with multiple consumers. In particular what would happen if one consumer were to hang? Would flow control be invoked and how would it affect the rest of the consumers? Would…
C R
  • 2,182
  • 5
  • 32
  • 41
2
votes
2 answers

How does nimble work in nodejs?

i am trying to understand how to use nimble for flow control with nodejs but I am having trouble understanding how it actually works and there's really no documentation that explains it(that I could find) For example, take this code from the…
2
votes
1 answer

A WPF solution to display chat messages of an IRC application

I am creating my first WPF application, which is an IRC chat program. Since I am new at WPF, I don't really know how should I display the messages, because they can contain bold, italic words or even images or a quiting message has other color then…
user2042930
  • 640
  • 1
  • 7
  • 14
2
votes
2 answers

pySerial XON/OFF fails on Linux but works on Windows

I have a small loop that is supposed to read some text data of multiple lines and unspecified length (sometimes rather large) from the serial port, and write it to a file: while True: data = port.readline() file.write(data) if not data: …
sbc_prod
  • 21
  • 3
2
votes
3 answers

How to limit the speed (or flow control) of http request in JMeter

I want to simulate end user accessing some http urls with JMeter. Is it possible to limit the connect speed for each http request like a flow control? Saying limit JMeter to fetch the response in max speed of 1M bps for each http request.
tdsparrow
  • 67
  • 4
2
votes
1 answer

How to set serial_port flow_control to other than none under boost asio

I found this fine line of code: serial_port_base::flow_control FLOW( serial_port_base::flow_control::none ); Now, I need flow_control to be set to hardware flow control - how can I do this? There is no documentation on that so far, and I am already…
Jook
  • 4,564
  • 3
  • 26
  • 53
2
votes
4 answers

which control flow library works with google closure library?

there are several js libraries available for flow control. though when working with the closure compiler the ones i looked at yet do not work well with the compiler in advanced mode. is there any closure compatible flow control library? I am mostly…
1 2
3
11 12