-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
33 additions
and
8 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
src/main/kotlin/net/eviltak/adbnmap/net/protocol/AdbServicesProtocol.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package net.eviltak.adbnmap.net.protocol | ||
|
||
import java.net.Socket | ||
|
||
/** | ||
* The protocol used by the ADB client to communicate with the ADB server | ||
*/ | ||
class AdbServicesProtocol(override val socket: Socket) : Protocol { | ||
|
||
/** | ||
* Send a test message in this communication protocol to a host through the [socket], eliciting a response | ||
* from the target host confirming whether it supports this protocol or not. | ||
* | ||
* @param socket The socket connected to the host to which to send the test message. | ||
*/ | ||
override fun sendTestMessage() { | ||
|
||
} | ||
|
||
/** | ||
* Check if the host the [socket] is connected to uses this communication protocol. | ||
* | ||
* @param socket The socket connected to the host. | ||
* | ||
* @return true if the connected host uses this protocol, false otherwise. | ||
*/ | ||
override fun hostUsesProtocol(): Boolean { | ||
return false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters