MCPcopy Create free account
hub / github.com/TigerVNC/tigervnc / sameMachine

Method sameMachine

java/com/tigervnc/network/TcpSocket.java:161–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

159 }
160
161 public boolean sameMachine() throws Exception {
162 try {
163 SocketAddress peeraddr = ((SocketDescriptor)getFd()).getRemoteAddress();
164 SocketAddress myaddr = ((SocketDescriptor)getFd()).getLocalAddress();
165 return myaddr.equals(peeraddr);
166 } catch (IOException e) {
167 throw new Exception(e.getMessage());
168 }
169 }
170
171 public void shutdown() throws Exception {
172 super.shutdown();

Callers

nothing calls this directly

Calls 5

getRemoteAddressMethod · 0.80
getLocalAddressMethod · 0.80
getFdMethod · 0.45
equalsMethod · 0.45
getMessageMethod · 0.45

Tested by

no test coverage detected