Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correcting typo (TransportLater actually sounds nice!) #41

Closed
wants to merge 3 commits into from

Conversation

Lompandi
Copy link

@Lompandi Lompandi commented Aug 4, 2024

No description provided.

@theaddonn
Copy link
Member

Don't forget to run rustfmt

@theaddonn
Copy link
Member

Also, could you please remove the pure udp transport stuff, it is not planned anymore and unneeded

Copy link
Member

@theaddonn theaddonn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove udp stuff please

@@ -71,6 +71,8 @@ pub enum TransportLayerError {
IOError(#[from] Arc<IOError>),
#[error("Raknet UDP Error: {0}")]
RaknetUDPError(#[from] RaknetError),
#[error("UDP Error: {0}")]
UDPError(#[from] UdpError),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove udp stuff please

@@ -84,3 +86,11 @@ pub enum RaknetError {
#[error("Format Error: {0}")]
FormatError(String),
}

#[derive(Error, Debug, Clone)]
pub enum UdpError {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove udp stuff please

// TODO Tcp(net::TcpStream),
// TODO Udp(net::UdpSocket)
// Tcp(std::net::TcpStream),
Udp(tokio::net::UdpSocket) //MCBE over UDP :sobb:??
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove udp stuff please

@@ -34,6 +34,22 @@ impl TransportLayerConnection {
.await
.map_err(|e| TransportLayerError::RaknetUDPError(RaknetError::SendError(e)))
}
TransportLayerConnection::Udp(conn) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove udp stuff please

@@ -81,6 +130,9 @@ impl TransportLayerConnection {
TransportLayerConnection::RaknetUDP(conn) => {
conn.close().await;
}
TransportLayerConnection::Udp(socket) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove udp stuff please

@theaddonn theaddonn closed this Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants