]> Cypherpunks repositories - gostls13.git/commit
net: Implement FileListener, FileConn, and File methods for Plan 9
authorAkshat Kumar <seed@mail.nanosouffle.net>
Tue, 26 Feb 2013 00:26:40 +0000 (01:26 +0100)
committerRon Minnich <rminnich@gmail.com>
Tue, 26 Feb 2013 00:26:40 +0000 (01:26 +0100)
commitb461fe660d82b3f3f21cd4042e0f4d3f800aac6c
tree54adc4fafe9dee7ad7c4e8b181ec82f7b2397465
parent31444a796a70530238b23d7603f85bf8d524d5da
net: Implement FileListener, FileConn, and File methods for Plan 9

Functions for representing network connections as files
and vice versa, on Plan 9.

Representing network connections as files is not so
straight-forward, because a network connection on Plan 9
is represented by a host of files rather than a single
file descriptor (as is the case on UNIX). We use the
type system to distinguish between listeners and
connections, returning the control file in the former
case and the data file in the latter case.

R=rsc, rminnich, ality, akumar, bradfitz
CC=golang-dev
https://golang.org/cl/7235068
src/pkg/net/fd_plan9.go
src/pkg/net/file_plan9.go
src/pkg/net/tcpsock_plan9.go