4546474849505152
sa3.setEmpty(index, empty); assertEquals(empty, sa3.isEmpty(index)); assertEquals(index, sa3.nextIndex(index, empty)); } assertEquals(size, sa3.calcSize()); } }
346347348349350351352353354355356
public int getSoLinger() { StructModule struct_ = (StructModule)client.getModule("struct"); String result = getsockopt(SocketModule.SOL_SOCKET, SocketModule.SO_LINGER, struct_.calcsize("ii")); Object[] unpacked = struct_.unpack("ii", result); if (unpacked[0].equals(new Integer(0))) return -1; return ((Number)unpacked[1]).intValue(); }