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

Fix tcp serial ports #1596

Merged
merged 2 commits into from
Jan 16, 2025
Merged

Fix tcp serial ports #1596

merged 2 commits into from
Jan 16, 2025

Conversation

LIV2
Copy link
Contributor

@LIV2 LIV2 commented Jan 16, 2025

I tried using TCP serial port functionality and found that it would never end up listening on the port
After some digging I've traced it down to this:

Here in openser(), sername is passed to opentcp() skipping the "TCP://" part
https://github.com/BlitterStudio/amiberry/blob/8196671d573c07d45fa90f9d3d55d3e67d4ad959/src/osdep/amiberry_serial.cpp#L338C1-L345C3

opentcp() calls uae_tcp_listen_uri() which expects the protocol to be part of the URI, otherwise it returns with UAE_SOCKET_INVALID
https://github.com/BlitterStudio/amiberry/blob/8196671d573c07d45fa90f9d3d55d3e67d4ad959/src/osdep/socket.cpp#L131C1-L137C3

This pull request fixes this issue by passing the full sername through to opentcp

@LIV2 LIV2 requested a review from midwan as a code owner January 16, 2025 07:51
Copy link
Collaborator

@midwan midwan left a comment

Choose a reason for hiding this comment

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

Thanks!

@midwan midwan merged commit 81771d7 into BlitterStudio:master Jan 16, 2025
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