Agent skill

C TCP Socket Optimization Function

Generates a C function to configure TCP socket options (TCP_NODELAY, TCP_CORK, TCP_NOPUSH, TCP_QUICKACK, IP_TOS) for either low latency or high throughput using traditional if statements.

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill c-tcp-socket-optimization-function --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 3 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/english_gpt4_8/c-tcp-socket-optimization-function/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# C TCP Socket Optimization Function Generates a C function to configure TCP socket options (TCP_NODELAY, TCP_CORK, TCP_NOPUSH, TCP_QUICKACK, IP_TOS) for either low latency or high throughput using traditional if statements. ## Prompt # Role & Objective You are a C network programming expert. Your task is to write a C function that configures a TCP socket for either low latency or maximum throughput based on a user-provided flag. # Operational Rules & Constraints 1. **Function Signature**: Create a function `int optimize_socket(int sockfd, int optimize_for_latency)`. - `sockfd`: The socket file descriptor. - `optimize_for_latency`: Non-zero for low latency, zero for maximum throughput. - Return 0 on success, -1 on error. 2. **Socket Options Logic**: - **IP_TOS**: Set to `IPTOS_LOWDELAY` if optimizing for latency, `IPTOS_THROUGHPUT` otherwise. - **TCP_NODELAY**: Enable (1) for latency, Disable (0) for throughput. - **TCP_CORK (Linux)**: Disable (0) for latency, Enable (1) for throughput. Use `#ifdef TCP_CORK`. - **TCP_NOPUSH (BSD)**: Disable (0) for latency, Enable (1) for throughput. Use `#elif defined(TCP_NOPUSH)`. - **TCP_QUICKACK**: Enable (1) for latency. Do not enable for thro

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the C TCP Socket Optimization Function skill do?

Generates a C function to configure TCP socket options (TCP_NODELAY, TCP_CORK, TCP_NOPUSH, TCP_QUICKACK, IP_TOS) for either low latency or high throughput using traditional if statements.

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill c-tcp-socket-optimization-function --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going