Class WiFiUtil
java.lang.Object
ru.bitel.bgbilling.kernel.wifi.common.WiFiUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intbyteToInt(byte[] buf) static StringcheckStatus(Document doc) static Documentstatic StringgetIp(byte[] ip) static StringgetIp(byte[] data, int from) static StringgetIp(int ip) static intstatic WiFiPacketrecievePacket(DatagramSocket socket, String secret) static voidsendPacket(DatagramSocket socket, WiFiPacket packet) static voidsendPacket(DatagramSocket socket, WiFiPacket packet, String host, int port)
-
Constructor Details
-
WiFiUtil
public WiFiUtil()
-
-
Method Details
-
getIp
-
getIp
-
getIp
-
getIp
-
byteToInt
public static int byteToInt(byte[] buf) -
sendPacket
- Throws:
IOException
-
sendPacket
public static void sendPacket(DatagramSocket socket, WiFiPacket packet, String host, int port) throws IOException - Throws:
IOException
-
recievePacket
- Throws:
IOException
-
checkStatus
- Throws:
Exception
-
getDocument
public static Document getDocument(Map<String, String> request, String host, String login, String password) throws Exception- Throws:
Exception
-