-
Notifications
You must be signed in to change notification settings - Fork 17
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
Conversation
Don't forget to run rustfmt |
Also, could you please remove the pure udp transport stuff, it is not planned anymore and unneeded |
There was a problem hiding this 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), |
There was a problem hiding this 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
@@ -84,3 +86,11 @@ pub enum RaknetError { | |||
#[error("Format Error: {0}")] | |||
FormatError(String), | |||
} | |||
|
|||
#[derive(Error, Debug, Clone)] | |||
pub enum UdpError { |
There was a problem hiding this 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
// TODO Tcp(net::TcpStream), | ||
// TODO Udp(net::UdpSocket) | ||
// Tcp(std::net::TcpStream), | ||
Udp(tokio::net::UdpSocket) //MCBE over UDP :sobb:?? |
There was a problem hiding this 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
@@ -34,6 +34,22 @@ impl TransportLayerConnection { | |||
.await | |||
.map_err(|e| TransportLayerError::RaknetUDPError(RaknetError::SendError(e))) | |||
} | |||
TransportLayerConnection::Udp(conn) => { |
There was a problem hiding this 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
@@ -81,6 +130,9 @@ impl TransportLayerConnection { | |||
TransportLayerConnection::RaknetUDP(conn) => { | |||
conn.close().await; | |||
} | |||
TransportLayerConnection::Udp(socket) => { |
There was a problem hiding this 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
No description provided.