-
-
Notifications
You must be signed in to change notification settings - Fork 439
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
5 changed files
with
61 additions
and
19 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,14 +1,8 @@ | ||
package adapter | ||
|
||
// TransportHandler is a TCP/UDP connection handler that implements | ||
// HandleTCPConn and HandleUDPConn methods. | ||
// HandleTCP and HandleUDP methods. | ||
type TransportHandler interface { | ||
HandleTCP(TCPConn) | ||
HandleUDP(UDPConn) | ||
} | ||
|
||
// TCPHandleFunc handles incoming TCP connection. | ||
type TCPHandleFunc func(TCPConn) | ||
|
||
// UDPHandleFunc handles incoming UDP connection. | ||
type UDPHandleFunc func(UDPConn) |
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
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