Swapping NSock with [Boost.] Asio

Open
#82 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
c
Domain
networking

Research direction

Start by locating NSock’s scheduler and connection handling in the NCrack source, then compare those responsibilities with the Asio integration described in the issue. The issue asks for guidance on what must be translated and where the scheduler lives, but does not identify files or tests or define a completed change.

Written by the indexing model from the issue text.

Description

I'm trying to integrate NCrack into a third party project that is already using Asio. As I have already implemented a lot of (seemingly black magic) fine grained controls over connections, I'd like to be using NCrack's modules (which are by the way amazing, thank you!) on top of ASIO instead of NSock.
I have gone through the documentation, but I'm still a bit lost.
I'd like to ask;

  • What's specific to NSock vs ASIO that would require extra logic to "translate" to ASIO?
  • Where do I find nsocks' scheduler code, if any?
Dominant language
C
Stars
1.2k
Forks
275
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nmap/ncrack

All issues in nmap/ncrack

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.