testPeerCreds() — netty Function Reference
Architecture documentation for the testPeerCreds() function in EpollSocketTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 863e8c95_9eaf_aca6_b346_28221d848946["testPeerCreds()"] 7960ae60_2326_353e_f75e_e3794db8e25d["EpollSocketTest"] 863e8c95_9eaf_aca6_b346_28221d848946 -->|defined in| 7960ae60_2326_353e_f75e_e3794db8e25d style 863e8c95_9eaf_aca6_b346_28221d848946 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollSocketTest.java lines 44–63
@Test
public void testPeerCreds() throws IOException {
LinuxSocket s1 = LinuxSocket.newSocketDomain();
LinuxSocket s2 = LinuxSocket.newSocketDomain();
try {
DomainSocketAddress dsa = UnixTestUtils.newDomainSocketAddress();
s1.bind(dsa);
s1.listen(1);
assertTrue(s2.connect(dsa));
byte [] addr = new byte[64];
s1.accept(addr);
PeerCredentials pc = s1.getPeerCredentials();
assertNotEquals(pc.uid(), -1);
} finally {
s1.close();
s2.close();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testPeerCreds() do?
testPeerCreds() is a function in the netty codebase, defined in transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollSocketTest.java.
Where is testPeerCreds() defined?
testPeerCreds() is defined in transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollSocketTest.java at line 44.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free