|
FRODO Version 2.19.1
An open-source framework for Distributed Constraint Optimization (DCOP)
|
This is a queue input pipe that receives messages through TCP. More...

Classes | |
| class | Receiver |
| Whenever a request for connection is received, one such a thread is spawn to establish the connection. More... | |
Public Member Functions | |
| QueueInputPipeTCP (Queue queue, int port, Integer maxNbrConnections) throws IOException | |
| Constructor. | |
| void | start () |
| void | run () |
| Waits for requests for connection from senders, and creates Receivers. | |
| void | close () |
| String | toDOT () |
Package Functions | |
| QueueInputPipeTCP (Queue queue, int port) throws IOException | |
| Constructor. | |
Private Attributes | |
| ServerSocket | servSocket = null |
| The server socket used to listen to connection requests from message senders. | |
| ArrayList< Socket > | sockets |
| Currently active sockets from which messages are being read. | |
| Integer | nbrConnections |
| The number of connection requests currently still allowed. | |
| Queue | queue |
| This pipe's queue. | |
This is a queue input pipe that receives messages through TCP.
| frodo2.communication.tcp.QueueInputPipeTCP.QueueInputPipeTCP | ( | Queue | queue, |
| int | port, | ||
| Integer | maxNbrConnections ) throws IOException |
Constructor.
Notifies the queue.
| queue | the queue messages should be passed to |
| port | port number used to listen for incoming messages |
| maxNbrConnections | maximum number of connection requests allowed. If null, there is no limit. |
| IOException | thrown if an I/O error occurred |
References nbrConnections, queue, servSocket, sockets, and start().
Referenced by frodo2.communication.tcp.QueueInputPipeTCP.Receiver.Receiver().

|
package |
Constructor.
Notifies the queue. Listens to an unlimited number of connection requests.
| queue | the queue messages should be passed to |
| port | port number used to listen for incoming messages |
| IOException | thrown if an I/O error occurred |
References queue.
| void frodo2.communication.tcp.QueueInputPipeTCP.close | ( | ) |
Implements frodo2.communication.QueueInputPipeInterface.
References servSocket, and sockets.
| void frodo2.communication.tcp.QueueInputPipeTCP.run | ( | ) |
Waits for requests for connection from senders, and creates Receivers.
References nbrConnections, and servSocket.
| void frodo2.communication.tcp.QueueInputPipeTCP.start | ( | ) |
Referenced by QueueInputPipeTCP().
| String frodo2.communication.tcp.QueueInputPipeTCP.toDOT | ( | ) |
Implements frodo2.communication.QueueInputPipeInterface.
References servSocket.
|
private |
The number of connection requests currently still allowed.
Referenced by QueueInputPipeTCP(), and run().
|
private |
This pipe's queue.
Referenced by QueueInputPipeTCP(), and QueueInputPipeTCP().
|
private |
The server socket used to listen to connection requests from message senders.
Referenced by close(), QueueInputPipeTCP(), run(), and toDOT().
|
private |
Currently active sockets from which messages are being read.
Referenced by close(), and QueueInputPipeTCP().