Skip to content

dannyniu/CodePatterns

Repository files navigation

CodePatterns

Exemplified Programming Interface Usages.

This project holds complete code samples for demonstrating archetypal usage of various application programming interfaces and common code patterns in those languages.

Files and Demonstrations

  1. host and service name resolution using getaddrinfo,

  2. syscall usages for socket, bind, listen, connect, etc.

  3. IO multiplexing with SysV poll. (See this for an argument against select)

  • Build Command: make CFLAGS="-Wall -Wextra" xtcp

  • Usage: xtcp [[bind-address] bind-port] connect-address connect-port (addresses and ports can be host and service names)

  • The newer IEEE-754 standards are more than just FP data formats. Here I've made a outline summary of the 2019 edition of the standard as a publicly available reference.
  • A discussion of C language integer types of my own.
  • Concurrent programming with async/await is nothing new under the sun.
  • Making sense of how the current forms of programming languages came about.

A discussion about some of the most complicated concepts with Unix/POSIX.

About

Exemplified Programming Interface Usages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages