Pomme::TAB
  • Mastodon
  • Permaculture Blog
  • Code
  • LinkedIn
Subscribe
Tagged

internet protocols

A collection of 3 posts

php

RFC 862 (echo) in PHP, Part 3: From stream to socket

So, in the previous two instalments [1] [2], I've wrangled together a basic echo server over TCP and UDP respectively. Before merging both code so we have a server that fully implement RFC 862, we need a wee bit of... Refactoring To explain the main motivation, we need to come

  • Rija Ménagé
Rija Ménagé Dec 24, 2022 • 3 min read
php

RFC 862 (echo) in PHP, Part 2: UDP mysteries

In my previous post, I've implemented an echo server functioning with the TCP protocol. However the RFC indicates that echo should work with both TCP and UDP [1]. When I implemented the TCP version I consider two different sets of network functions in PHP. the stream_socket_* set and the

  • Rija Ménagé
Rija Ménagé Dec 18, 2022 • 6 min read
php

RFC 862 (echo) in PHP, Part 1: TCP fun

A self-contained server implementation in PHP (8.1) of RFC 862 (echo). That old (1983) RFC describes an IP-based client-server application where the client sends data to the server, and the server returns the same data back to the client (hence the name "echo"). It used to be

  • Rija Ménagé
Rija Ménagé Dec 11, 2022 • 2 min read
Pomme::TAB © 2023
Powered by Ghost