Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/objectionary/eo-net
Socket Object for EO Programming Language
https://github.com/objectionary/eo-net
eolang oop sockets
Last synced: about 2 months ago
JSON representation
Socket Object for EO Programming Language
- Host: GitHub
- URL: https://github.com/objectionary/eo-net
- Owner: objectionary
- License: mit
- Created: 2022-06-18T04:05:58.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-14T11:58:55.000Z (5 months ago)
- Last Synced: 2024-08-14T13:17:16.050Z (5 months ago)
- Topics: eolang, oop, sockets
- Language: Java
- Homepage:
- Size: 81.1 KB
- Stars: 8
- Watchers: 3
- Forks: 3
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)
[![We recommend IntelliJ IDEA](https://www.elegantobjects.org/intellij-idea.svg)](https://www.jetbrains.com/idea/)[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/kerelape/eo-sockets/blob/main/LICENSE.txt)
[![codecov](https://github.com/objectionary/eo-net/actions/workflows/codecov.yml/badge.svg)](https://github.com/objectionary/eo-net/actions/workflows/codecov.yml)**This repository is deprecated! We've moved all EO objects from this repository
to [objectionary/eo](https://github.com/objectionary/eo).**[EOLANG](https://www.eolang.org) socket object.
This is how to connect to a TCP server and send 88:
```
+alias org.eolang.net.socket[] > main
seq > @
as-output. > output
connect.
socket
"localhost"
8080
output.write 88
output.flush
```Server:
```
# Create TCP server and echo+alias org.eolang.net.socket
[] > main
seq > @
write.
as-output. > output
accept. > conn
listen.
socket
"localhost"
8080
conn.as-input.read
output.flush
```## How to Contribute
Fork repository, make changes, send us a pull request.
We will review your changes and apply them to the `main` branch shortly,
provided they don't violate our quality standards. To avoid frustration,
before sending us your pull request please run full Maven build:```bash
$ mvn clean install -Pqulice
```You will need Maven 3.3+ and Java 8+.