mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-17 18:06:15 -05:00
20 lines
229 B
Go
20 lines
229 B
Go
package net
|
|
|
|
import (
|
|
"net"
|
|
)
|
|
|
|
type VMessHandler struct {
|
|
|
|
}
|
|
|
|
func (*VMessHandler) Listen(port uint8) error {
|
|
listener, err := net.Listen("tcp", ":" + string(port))
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
|
|
return nil
|
|
}
|