mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-12 22:44:35 +01:00
22 lines
368 B
C#
22 lines
368 B
C#
using System;
|
|
|
|
namespace MoleMole
|
|
{
|
|
public interface MiClientInterface
|
|
{
|
|
bool connect(string host, ushort port, int timeout_ms = 2000);
|
|
|
|
void disconnect();
|
|
|
|
bool isConnected();
|
|
|
|
bool send(NetPacketV1 packet);
|
|
|
|
NetPacketV1 recv(int timeout_ms = 0);
|
|
|
|
void setDisconnectCallback(Action callback);
|
|
|
|
bool setKeepalive(int time_ms, NetPacketV1 packet);
|
|
}
|
|
}
|