Skip to content

feat: Support Bind and Listen opcodes #325

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pchaseh
Copy link
Contributor

@pchaseh pchaseh commented May 1, 2025

Closes #318

@@ -1469,19 +1469,20 @@ pub fn test_socket<S: squeue::EntryMarker, C: cqueue::EntryMarker>(
require!(
test;
test.probe.is_supported(opcode::Socket::CODE);
test.probe.is_supported(opcode::Bind::CODE);
);

println!("test socket");

// Open a UDP socket, through old-style `socket(2)` syscall.
Copy link
Member

Choose a reason for hiding this comment

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

This changes the behavior mentioned in comment


opcode! {
/// Listen on a socket, equivalent to `listen(2)`.
pub struct Listen {
Copy link
Member

Choose a reason for hiding this comment

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

better add a test for it too

@quininer
Copy link
Member

Sorry delay, I missed this.

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.

Add support for bind/listen
2 participants