Alachisoft.NCache.Common.Communication.IConnection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nc-common Show documentation
Show all versions of nc-common Show documentation
Internal package of Alachisoft.
package Alachisoft.NCache.Common.Communication;
import Alachisoft.NCache.Common.Communication.Exceptions.ConnectionException;
import java.net.UnknownHostException;
public interface IConnection {
void Bind(String ipAddress) throws UnknownHostException;
boolean Connect(String serverIP, int port) throws UnknownHostException, java.io.IOException;
void Disconnect();
boolean Send(byte[] buffer, int offset, int count) throws ConnectionException;
boolean Receive(byte[] buffer, int count) throws ConnectionException;
boolean getIsConnected();
}