in ,

modern-fortran / tcp-client-server, Hacker News

modern-fortran / tcp-client-server, Hacker News


                    

        

A minimal TCP client and server in Fortran, used to teach interoperability with C. Companion code for Chapter 11 ofModern Fortran: Building Efficient Parallel Applications.

It useslibdillas a sockets library.

Getting started

Download and build the code:

git clone https://github.com/modern-fortran / tcp-client-server cd tcp-client-server make

Running the server

In one terminal window, run the server:

./ server  Listening on socket:    IP address: 127 0.0.1    Port: 5555

Running the client

In another terminal window, run the client:

./ client                     5 Hello

On client connection, the server will report:

New connection from 127 .0.1

  

Brave Browser
Read More
Payeer

What do you think?

Leave a Reply

Your email address will not be published. Required fields are marked *

GIPHY App Key not set. Please check settings

Chelsea vs Manchester United result: Marcus Rashford’s double puts Manchester United through to the Carabao Cup last eight – The Independent, Independent

Chelsea vs Manchester United result: Marcus Rashford’s double puts Manchester United through to the Carabao Cup last eight – The Independent, Independent

The Cloud and Open Source, Hacker News