Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CyberInnovationHub-NLD/OpenSourceDataDiode
/ functions
Functions
144 in github.com/CyberInnovationHub-NLD/OpenSourceDataDiode
⨍
Functions
144
◇
Types & classes
46
Function
main
Creates an IngressMockHandler struct. This struct starts sending UDP packets to the socket path supplied in the arguments.
protocol_handlers/ph_mock_handler/src/bin/ph_mock_ingress.rs:65
Function
main
Creates an EgressMockHandler struct. This struct starts reading data from the socket path supplied in the arguments.
protocol_handlers/ph_mock_handler/src/bin/ph_mock_egress.rs:63
Function
main
()
protocol_handlers/ph_kafka/src/bin/ph_kafka_test_consumer.rs:43
Function
main
()
protocol_handlers/ph_kafka/src/bin/ph_kafka_egress.rs:27
Function
main
()
protocol_handlers/ph_kafka/src/bin/ph_kafka_ingress.rs:29
Function
main
()
protocol_handlers/ph_kafka/src/bin/ph_kafka_test_producer.rs:43
Function
main
()
protocol_handlers/ph_udp/src/bin/ph_udp_ingress.rs:27
Function
main
()
protocol_handlers/ph_udp/src/bin/ph_udp_egress.rs:26
Function
main
()
filters/filter/src/bin/filter.rs:26
Method
new
(host: &str)
framework/transport_udp/src/rx/udp_receiver.rs:26
Method
new
creates a new InnerUdpReceiver struct. # Arguments `socket` - The udpSocket, used to receive data on. `bip_writer` - The BipBufferWriter used to write
framework/transport_udp/src/rx/inner_udp_receiver.rs:53
Method
new
( host: &str, reader: BipBufferReader, send_delay_ms: u64, stats_data: Arc<Sta
framework/transport_udp/src/tx/udp_sender.rs:37
Method
new
Creates a new instance of SocketReader This function will block until the socket has been created by a SocketWriter. # Arguments `path` - The path of
framework/socket_utils/src/socket_reader.rs:31
Method
new
Creates a new instance of BufferedSocketReader This function will block until the socket has been created by a SocketWriter. # Arguments `path` - The
framework/socket_utils/src/buffered_socket_reader.rs:33
Method
new
(path: &str)
protocol_handlers/ph_mock_handler/src/bin/ph_mock_ingress.rs:28
Method
new
(path: &str)
protocol_handlers/ph_mock_handler/src/bin/ph_mock_egress.rs:29
Method
new
(payload: &[u8], offset: i64, topic: &str)
protocol_handlers/ph_kafka/src/lib.rs:43
Method
new
( host: &str, port: u16, in_replacement: String, out_replacement: String,
protocol_handlers/ph_kafka/src/producer.rs:37
Method
new
( topic: &str, host: &str, port: u16, max_bytes: usize, stats_data: Ar
protocol_handlers/ph_kafka/src/consumer.rs:43
Method
new
(topic: &str, miliseconds_to_wait: u64)
protocol_handlers/ph_kafka/tests/ph_kafka_integration_test.rs:97
Method
new_size
(topic: &str, miliseconds_to_wait: u64, size: usize)
protocol_handlers/ph_kafka/tests/ph_kafka_integration_test.rs:114
Method
new_standard
Creates a new instance of the statsdClient
statistics/statistics_handler/src/lib.rs:120
Method
new_with_custom_fields
( custom_counter: Option<&str>, custom_gauge: Option<&str>, )
statistics/statistics_handler/src/lib.rs:132
Function
packetloss_test
TODO: enable this again
framework/transport_udp/src/rx/mod.rs:154
Function
read_write_single_element_test
()
framework/socket_utils/src/lib.rs:31
Function
read_writer_packet_header_test
()
framework/transport_udp/src/rx/mod.rs:132
Method
receive_data
This function fetches data from the socket. This data is then sent to the bip_buffer using the bipBufferWriter. This function will block until space i
framework/socket_utils/src/buffered_socket_reader.rs:59
Method
run
This function is used to start the statsdClient. When this function is called the statsdClient starts sending statistics to the specified statsd serve
statistics/statistics_handler/src/lib.rs:167
Method
run
This function is used to start the UdpReceiver. It will create and start a InnerUdpReceiver struct. The joinhandle to this struct is returned by the r
framework/transport_udp/src/rx/udp_receiver.rs:39
Method
run
This function starts the InnerUdpReceiver state machine. This function will run on a seperate thread. # Returns `JoinHandle<()>` - The JoinHandle of t
framework/transport_udp/src/rx/inner_udp_receiver.rs:77
Method
send_data
(&mut self, reader: &mut BipBufferReader)
framework/socket_utils/src/buffered_socket_writer.rs:46
Function
send_message
()
framework/transport_udp/tests/receiver_test.rs:23
Function
serialization_test
()
framework/transport_udp/src/tx/mod.rs:92
Method
start_listening
Creates a new instance of the SocketWriter # Arguments `path` - The path the socket is created on.
framework/socket_utils/src/socket_writer.rs:30
Method
start_listening
Creates a new instance of the SocketWriter and starts accepting connections to the socket. # Arguments `path` - The path the socket is created on.
framework/socket_utils/src/buffered_socket_writer.rs:33
Method
stop
Stops the run loop of the statsdClient.
statistics/statistics_handler/src/lib.rs:178
Method
stop
This function is used to stop the UdpSender thread. It will also send shutdown messages to the UdpReceiver.
framework/transport_udp/src/tx/udp_sender.rs:83
Method
stop
Stops the SocketWriter. Calls Shutdown::Both on the underlying stream. After the stream is stopped, the socket file is removed.
framework/socket_utils/src/socket_writer.rs:79
Method
stop
(&self)
framework/socket_utils/src/buffered_socket_writer.rs:62
Method
stop
Stops the BufferedSocketReader. Calls Shutdown::Both on the underlying stream.
framework/socket_utils/src/buffered_socket_reader.rs:88
Function
update_state_16_messages_test
()
framework/transport_udp/src/rx/inner_udp_receiver.rs:308
Function
update_state_1_message_test
()
framework/transport_udp/src/rx/inner_udp_receiver.rs:253
Function
update_state_2_messages_test
()
framework/transport_udp/src/rx/inner_udp_receiver.rs:276
Function
write_read_bip_buffer
Is used to test reading and writing of multiple buffers to a bip_buffer.
framework/bip_utils/src/lib.rs:93
← previous
101–144 of 144, ranked by callers