Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Latest commit

 

History

History
59 lines (46 loc) · 1.65 KB

README.md

File metadata and controls

59 lines (46 loc) · 1.65 KB

EO principles respected here We recommend IntelliJ IDEA

License codecov

This repository is deprecated! We've moved all EO objects from this repository to objectionary/eo.

EOLANG 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:

$ mvn clean install -Pqulice

You will need Maven 3.3+ and Java 8+.