#unix

260 posts · Last used 22h

Replying to
Advanced Programming in the #UNIX Environment Week 9: socketpair(2) We continue our discussion of IPC mechanisms and moving on from pipes to discuss the socketpair(2) system call and compare its functionality with that of the pipe(2) call. This also introduces the concept of sockets, domains, and protocols, which we'll cover in more detail in the next videos.

Advanced Programming in the UNIX Environment: Week 09, Segment 1 - socketpair(2)

3
10
0
0
Replying to
Advanced Programming in the #UNIX Environment Week 9: socket(2) PF_LOCAL Let's take our discussion of the sockets API from socketpair(2) to by an example of datagram connections in the PF_LOCAL (formerly AF_UNIX) domain. This introduces the bind(2), send(2), and recv(2) system calls (although you can use read(2)/write(2) on the file descriptors as well).

Advanced Programming in the UNIX Environment: Week 09, Segment 2 - socket(2)s in the LOCAL domain

3
9
1
0
Replying to
Advanced Programming in the #UNIX Environment Week 9: socket(PF_INET, SOCK_DGRAM, 0) In this video lecture, we show how to communicate between hosts across the internet using datagram sockets in the PF_INET domain, that is, via UDP. We also observe the packets as they are sent by using the tcpdump(8) utility.

Advanced Programming in the UNIX Environment: Week 09, Segment 3 - DGRAM Sockets in the INET Domain

4
8
2
0
Replying to
Advanced Programming in the #UNIX Environment Week 9: socket(PF_INET6, SOCK_STREAM, 0) In this video, we demonstrate the use of STREAM sockets in the INET6 domain, meaning we'll use TCP to establish a sequenced, reliable, two-way byte stream over an IPv6 network. We'll again use tcpdump(8) to observe the TCP three-way handshake, data being exchanged, and connection tear down or observing a reset (RST) packet from the server if it is not listening on the given port.

Advanced Programming in the UNIX Environment: Week 9, Segment 4 - STREAM sockets in the INET6 Domain

5
7
2
0
Replying to
Advanced Programming in the #UNIX Environment Week 9: IPC Buffer Sizes Having discussed different types of IPC, let's go on a side-quest. This command shows "message" is written, but not consumed immediately: $ ( echo "message"; echo "message written" >&2; ) | ( sleep 3; cat; ) Large messages block on writing. So _some_ data can be buffered - but... how much?
6
6
0
0
Replying to
Advanced Programming in the #UNIX Environment Week 9: I/O Multiplexing With this video, we complete our discussion of interprocess communication and move from one-to-one communications towards a more typical client-server model with a server side process capable of handling multiple simultaneous clients. We accomplish this by using the select(2) syscall to handle synchronous I/O multiplexing.

Advanced Programming in the UNIX Environment: Week 09, Segment 5 - I/O Multiplexing

4
5
2
0
Replying to
Advanced Programming in the #UNIX Environment Week 9: /usr/share/doc Did you know that #NetBSD comes with several historical Unix research papers & supplementary documentation? Find papers by Marshall Kirk McKusick on the Fast File System, by Robert Morris & Ken Thompson on Password Security, a shell tutorial by Stephen R. Bourne, a guide to using vi(1) by Bill Joy, and the IPC Tutorials on which we based much of the code for this week! Take a look in /usr/share/doc...

Advanced Programming in the UNIX Environment: Tool Tip - /usr/share/doc

14
4
13
0
Replying to
Advanced Programming in the #UNIX Environment Week 10: dæmon processes This week is light on video content. Here, we take a quick look at processes intended to run continuously and in the background: daemon processes. We'll also brush upon system start scripts and daemon/service conventions.

Advanced Programming in the UNIX Environment: Week 10, Segment 1 - Daemon processes

10
3
5
0
Replying to
Advanced Programming in the #UNIX Environment Week 10: syslog(3) In this video lecture, we take a look at the standard Unix central logging facility, syslogd(8), and the syslog(3) library function. We show examples of system logs and how to separate messages by priority and level.

Advanced Programming in the UNIX Environment: Week 12, Segment 1 - syslog(3)

3
2
1
0
Replying to
Advanced Programming in the #UNIX Environment Week 11: The Executable and Linkable Format This week, we begin our exploration of shared libraries. We start with a look at the Executable and Linkable Format (ELF) for binary files such as executables, object files, core files and shared libraries. We'll use the hexdump(1) and readelf(1) utilities to better understand the format.

Advanced Programming in the UNIX Environment: Week 11, Segment 1 - The Executable & Linkable Format

7
1
5
0
Replying to
Advanced Programming in the #UNIX Environment Week 11: Of Linkers and Loaders In this segment, we revisit our discussion from Week 5 about the linker and add some more color: we take a look at how a relocatable object file is turned into an executable by the dynamic linker (ld(1)) and how a dynamically linked executable is loaded into memory by the run-time link-editor (ld.so or ld.elf_so).

Advanced Programming in the UNIX Environment: Week 11, Segment 2 - Of Linkers and Loaders

1
0
1
0
Reposting my old #introduction: Aspirationally normal person except for being on fedi and riding my #bicycle year-'round. Residing in rural Michigan, US with my wife, two cats, and too many unfinished projects. Professionally a grumpy #Unix nerd at a public university. Like the idea of being kind to people. Sometimes I go #running. Stale toots at https://mastodon.social/@onedayfishsale and elsewhere.
0
0
1
0
Replying to
My library has grown past a single bookshelf! #vintagecomputing #retrocomputing #unix #computerscience
24
4
2
0