# c-net

> cnet is a synchronous TCP library for Node.js written in c

Latest version **1.0.1** (published 2015-08-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install c-net
pnpm add c-net
yarn add c-net
bun add c-net
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2015-08-11 |
| First published | 2015-08-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 0 |
| Author | 0x4139@gmail.com |
| Maintainers | 0x4139 |
| Keywords | sync, net, synchrnous, tcp |

## Links

- npm: https://www.npmjs.com/package/c-net
- Repository: https://github.com/0x4139/cnet
- Homepage: https://github.com/0x4139/cnet#readme
- Issues: https://github.com/0x4139/cnet/issues
- npm.io page: https://npm.io/package/c-net

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-08-11
- 1.0.0 — 2015-08-11

## README

cnet
=======

A simple synchronous TCP library for Node.js. This is implemented as a [native addon]
(http://nodejs.org/api/addons.html).

**Note before proceeding** that Node is designed to be an asynchronous environment,
and if you want to use this module you should have a really good reason to do so.


Usage
--------------
```
    var cnet = require('c-net');
    var socket = cnet.connect('host',port);
    cnet.write(socket,'0x4139@Gmail.com');
    var data = cnet.read(socket);
    console.log(data);
    cnet.close(socket);
```

Current Status
--------------

Currently only the client part is implemented, with the ability to open a connection
to the server, read/write to the connection, and close the connection. The server part
isn't implemented yet, as I can't think of a useful use case for it.

License
-------

This piece of code is licensed under the MIT license @ Vali Malinoiu.

---
_Source: https://npm.io/package/c-net · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
