public class Shim extends Object implements AutoCloseable
The SHIM will try to install itself on port 30041. If that is not possible, it will optimistically assume that another SHIM is already running there.
The SHIM responds to SCMP echo request. All other packets will be forwarded to the destination address encoded in the SCION header. If parsing of the SCION header fails, the packet is dropped.
| Modifier and Type | Class and Description |
|---|---|
static class |
Shim.Builder |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
forward(ByteBuffer buf,
DatagramChannel channel) |
static void |
install(ScionService service)
Start the SHIM.
|
static boolean |
isInstalled() |
void |
signalReadiness() |
static void |
uninstall() |
public static void install(ScionService service)
public static void uninstall()
public static boolean isInstalled()
public void signalReadiness()
public void close()
throws IOException
close in interface AutoCloseableIOExceptionpublic void forward(ByteBuffer buf, DatagramChannel channel)
Copyright © 2024. All rights reserved.