Skip to content

Commit

Permalink
Synchronization with the latest reactor-c
Browse files Browse the repository at this point in the history
- reactor-c commit id: 85d54a47af1925b1c52e7e3afba2ec66bc505128
- Add eimt_strict function
- Add function descriptions as comments
- Synchronize code
  • Loading branch information
chanijjani committed Feb 11, 2024
1 parent e7885bd commit 7c59a88
Show file tree
Hide file tree
Showing 4 changed files with 550 additions and 295 deletions.
6 changes: 3 additions & 3 deletions rust/rti/src/net_common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ pub enum MsgType {
NextEventTag,
TagAdvanceGrant,
PropositionalTagAdvanceGrant,
LogicalTagComplete,
LatestTagComplete,
StopRequest,
StopRequestReply,
StopGranted,
Expand All @@ -120,7 +120,7 @@ impl MsgType {
MsgType::NextEventTag => 6,
MsgType::TagAdvanceGrant => 7,
MsgType::PropositionalTagAdvanceGrant => 8,
MsgType::LogicalTagComplete => 9,
MsgType::LatestTagComplete => 9,
MsgType::StopRequest => 10,
MsgType::StopRequestReply => 11,
MsgType::StopGranted => 12,
Expand All @@ -142,7 +142,7 @@ impl MsgType {
5 => MsgType::TaggedMessage,
6 => MsgType::NextEventTag,
8 => MsgType::PropositionalTagAdvanceGrant,
9 => MsgType::LogicalTagComplete,
9 => MsgType::LatestTagComplete,
10 => MsgType::StopRequest,
11 => MsgType::StopRequestReply,
12 => MsgType::StopGranted,
Expand Down
4 changes: 2 additions & 2 deletions rust/rti/src/net_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use crate::tag::Tag;
pub struct NetUtil {}

impl NetUtil {
pub fn read_from_stream_errexit(
pub fn read_from_socket_fail_on_error(
stream: &mut TcpStream,
buffer: &mut Vec<u8>,
fed_id: u16,
Expand Down Expand Up @@ -57,7 +57,7 @@ impl NetUtil {
bytes_read
}

pub fn write_to_stream_errexit(
pub fn write_to_socket_fail_on_error(
mut stream: &TcpStream,
buffer: &Vec<u8>,
fed_id: u16,
Expand Down
Loading

0 comments on commit 7c59a88

Please sign in to comment.