-
Notifications
You must be signed in to change notification settings - Fork 15
/
tcpuid_other.go
34 lines (29 loc) · 978 Bytes
/
tcpuid_other.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// +build !linux
/* ipp-usb - HTTP reverse proxy, backed by IPP-over-USB connection to device
*
* Copyright (C) 2020 and up by Alexander Pevzner ([email protected])
* See LICENSE for license terms and conditions
*
* UID discovery for TCP connection over loopback -- default version
*
* If you've have added support for yet another platform, please don't
* forget to update build tag at the top of this file to exclude your
* platform
*/
package main
import (
"net"
)
// TCPClientUIDSupported tells if TCPClientUID supported on this platform
//
// If this function returns false, TCPClientUID should never be called
func TCPClientUIDSupported() bool {
return false
}
// TCPClientUID obtains UID of client process that created
// TCP connection over the loopback interface
func TCPClientUID(client, server *net.TCPAddr) (int, error) {
// Note, TCPClientUID should never be called, if
// TCPClientUIDSupported returns false
panic("TCPClientUID not supported")
}