com.flybotix.hfr.io.receiver.IReceiveProtocol Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of highfrequencyrobots Show documentation
Show all versions of highfrequencyrobots Show documentation
A way for wifi robots and IoT devices to quickly send compressed data arrays across a network.
package com.flybotix.hfr.io.receiver;
public interface IReceiveProtocol {
public void addParserForMessageType(Integer pType, IMessageParser> pParser);
public default void addParserForMessageType(Class> pType, IMessageParser> pParser) {
addParserForMessageType(pType.hashCode(), pParser);
}
public default void addParserForMessageType(String pType, IMessageParser> pParser) {
addParserForMessageType(pType.hashCode(), pParser);
}
public void setHostPort(int pPort);
public void setHostInfo(String pHostInfo);
public void disconnect();
public void connect();
}