17 return asPort().
open(contact, registerName);
26 const std::string& carrier)
53 return asPort().where();
128 return asPort().getType();
138 return asPort().acquireProperties(
readOnly);
149 return asPort().
write(writer, callback);
156 return asPort().
write(writer, reader, callback);
162 return asPort().
read(reader, willReply);
167 return asPort().reply(writer);
172 return asPort().replyAndDrop(writer);
A mini-server for performing network communication in the background.
bool removeCallbackLock() override
Remove a lock on callbacks added with setCallbackLock()
void setRpcMode(bool expectRpc) override
Configure the port to be RPC only.
void promiseType(const Type &typ) override
Commit the port to a particular type of data.
void includeNodeInName(bool flag) override
Choose whether to prepend a node name (if one is available) to the port's name.
void resume() override
Put the port back in an operative state after interrupt() has been called.
void setAdminReader(PortReader &reader) override
Set an external reader for unrecognized administrative port messages.
bool tryLockCallback() override
Try to lock callbacks until unlockCallback() is called.
bool getEnvelope(PortReader &envelope) override
Get the envelope information (e.g., a timestamp) from the last message received on the port.
bool setCallbackLock(std::mutex *mutex) override
Add a lock to use when invoking callbacks.
void close() override
Stop port activity.
void releaseProperties(Property *prop) override
End access unstructured port properties.
bool setEnvelope(PortWriter &envelope) override
Set an envelope (e.g., a timestamp) to the next message which will be sent.
void setReader(PortReader &reader) override
Set an external reader for port data.
void setOutputMode(bool expectOutput) override
Configure the port to allow or forbid outputs.
bool open(const std::string &name) override
Start port operation, with a specific name, with automatically-chosen network parameters.
void interrupt() override
Interrupt any current reads or writes attached to the port.
void setReporter(PortReport &reporter) override
Set a callback to be called upon any future connections and disconnections to/from the port.
int getInputCount() override
Determine how many connections are arriving into this port.
bool isWriting() override
Report whether the port is currently writing data.
void getReport(PortReport &reporter) override
Get information on the state of the port - connections etc.
T * read(bool shouldWait=true) override
Read an available object from the port.
bool addOutput(const std::string &name) override
Add an output connection to the specified port.
bool lockCallback() override
Lock callbacks until unlockCallback() is called.
int getOutputCount() override
Determine how many output connections this port has.
void write(bool forceStrict=false)
Write the current object being returned by BufferedPort::prepare.
void resetReporter() override
Remove the callback which is called upon any future connections and disconnections to/from the port.
void setInputMode(bool expectInput) override
Configure the port to allow or forbid inputs.
void unlockCallback() override
Unlock callbacks.
Interface implemented by all objects that can read themselves from the network, such as Bottle object...
A base class for objects that want information about port status changes.
Interface implemented by all objects that can write themselves to the network, such as Bottle objects...
A class for storing options and configuration information.