summaryrefslogtreecommitdiff
path: root/src/lib/net
AgeCommit message (Collapse)AuthorFilesLines
2009-06-09mv src/lib to src/pkgRob Pike17-3717/+0
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102
2009-06-05rebuilt Makefiles for CL 29923Russ Cox1-14/+6
R=r DELTA=761 (1 added, 433 deleted, 327 changed) OCL=29927 CL=29966
2009-06-04more 386 runtime fixes.Russ Cox1-15/+8
can pass many tests; current stumbling block is an 8l bug. R=r DELTA=122 (83 added, 8 deleted, 31 changed) OCL=29872 CL=29876
2009-06-01update Go tree to use new syscall package.Russ Cox8-365/+143
R=r DELTA=713 (109 added, 386 deleted, 218 changed) OCL=29707 CL=29722
2009-05-14fix abstract unix domain socketsRob Pike1-0/+1
R=rsc DELTA=5 (3 added, 0 deleted, 2 changed) OCL=28845 CL=28849
2009-05-13Unix domain socket support, Linux and Darwin.Russ Cox4-72/+334
R=r DELTA=534 (353 added, 99 deleted, 82 changed) OCL=28783 CL=28783
2009-05-08throw away os._Error.Russ Cox6-22/+31
make some error types in a few packages R=r DELTA=110 (25 added, 46 deleted, 39 changed) OCL=28382 CL=28561
2009-05-08embeddability: change bufio.BufRead to bufio.Reader etc.Rob Pike1-1/+1
R=rsc DELTA=112 (0 added, 4 deleted, 108 changed) OCL=28537 CL=28543
2009-05-08Name change to improve embeddability:Rob Pike1-1/+1
io.Read->io.Reader io.Write,Close,etc.->io.Writer,Closer etc. R=rsc DELTA=190 (0 added, 0 deleted, 190 changed) OCL=28525 CL=28535
2009-05-08minor cleanup, not required by compiler changesRuss Cox1-11/+7
R=r DELTA=14 (1 added, 4 deleted, 9 changed) OCL=28447 CL=28509
2009-05-07another attempt at avoiding IPv6 when it's not supported.Russ Cox2-27/+33
dsymonds confirms that this one works. R=r DELTA=50 (23 added, 17 deleted, 10 changed) OCL=28433 CL=28444
2009-05-07next step for 6.out on Borg: fix and testRuss Cox2-2/+13
net code on IPv4-only machines. R=r DELTA=27 (25 added, 0 deleted, 2 changed) OCL=28404 CL=28411
2009-04-30bug146: array/slice conversion before I left missed conversionsRuss Cox2-4/+4
R=ken OCL=28120 CL=28124
2009-04-30auto-detect whether to use IPv6 or IPv4 kernel interfaceRuss Cox1-3/+12
R=r DELTA=12 (9 added, 0 deleted, 3 changed) OCL=28096 CL=28118
2009-04-29Fix channels used by WaitWrite (http server hangs on writesBrendan O'Dea1-2/+2
which hit EAGAIN). R=rsc APPROVED=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=27955 CL=28054
2009-04-19Readn is a silly name when there's no n. Change to FullRead.Rob Pike2-2/+2
R=gri DELTA=15 (0 added, 0 deleted, 15 changed) OCL=27619 CL=27619
2009-04-17Step 1 of the Big Error Shift: make os.Error an interface and replace ↵Rob Pike10-84/+84
*os.Errors with os.Errors. lib/template updated to use new setup; its clients also updated. Step 2 will make os's error support internally much cleaner. R=rsc OCL=27586 CL=27586
2009-04-16regenerate makefile with installed gobuildRuss Cox1-15/+23
R=r DELTA=23 (8 added, 0 deleted, 15 changed) OCL=27577 CL=27583
2009-04-16fix linux buildRob Pike1-2/+2
R=rsc OCL=27579 CL=27579
2009-04-16Convert go tree to hierarchical pkg directory:Russ Cox6-6/+6
import ( "vector" -> "container/vector" "ast" -> "go/ast" "sha1" -> "hash/sha1" etc. ) and update Makefiles. Because I did the conversion semi-automatically, I sorted all the import blocks as a post-processing. Some files have therefore changed that didn't strictly need to. Rename local packages to lower case. The upper/lower distinction doesn't work on OS X and complicates the "single-package directories with the same package name as directory name" heuristic used by gobuild and godoc to create the correlation between source and binary locations. Now that we have a plan to avoid globally unique names, the upper/lower is unnecessary. The renamings will cause trouble for a few users, but so will the change in import paths. This way, the two maintenance fixes are rolled into one inconvenience. R=r OCL=27573 CL=27575
2009-04-16regenerate Makefiles.Russ Cox1-11/+15
fix bug in RPC.go (import "RPC" not "rpc.pb") R=r DELTA=483 (261 added, 64 deleted, 158 changed) OCL=27547 CL=27549
2009-04-15code changes for array conversion.Russ Cox4-10/+10
as a reminder, the old conversion was that you could write var arr [10]byte; var slice []byte; slice = arr; but now you have to write slice = &arr; the change eliminates an implicit &, so that the only implicit &s left are in the . operator and in string(arr). also, removed utf8.EncodeRuneToString in favor of string(rune). R=r DELTA=83 (1 added, 23 deleted, 59 changed) OCL=27531 CL=27534
2009-04-15document and partially fix a raceRuss Cox1-3/+24
R=r DELTA=24 (21 added, 0 deleted, 3 changed) OCL=27527 CL=27527
2009-03-11Rename os.FD to os.File.Russ Cox3-18/+18
Make Fstat, Readdirnames, and Readdir methods on os.File. R=r DELTA=281 (79 added, 3 deleted, 199 changed) OCL=25891 CL=26130
2009-03-06document Conn interface better, in preparationRuss Cox8-59/+313
for per-method interface documentation by mkdoc.pl. implement timeouts on network reads and use them in dns client. also added locks on i/o to ensure writes are not interlaced. R=r DELTA=340 (272 added, 25 deleted, 43 changed) OCL=25799 CL=25874
2009-03-05net: doc, doc-inspired cleanupRuss Cox15-271/+344
R=r DELTA=368 (87 added, 14 deleted, 267 changed) OCL=25773 CL=25786
2009-03-03Automated g4 rollback of changelist 25024,Russ Cox8-56/+57
plus significant hand editing. Back to T{x} for composite literals. R=r OCL=25612 CL=25632
2009-02-15change the URL in the test to avoid a redirection that breaks it in sydney.Rob Pike1-3/+3
R=rsc OCL=25054 CL=25054
2009-02-15add os.ForkExec, os.Exec, os.Wait, exec.OpenCmd.Russ Cox2-0/+14
as thread-safe as possible, given the surrounding system. add stub RWLock implementation. R=r DELTA=852 (834 added, 6 deleted, 12 changed) OCL=25046 CL=25053
2009-02-15insert ${GOOS} and ${GOARCH} inRuss Cox1-2/+2
command-line comment. R=r DELTA=11 (6 added, 0 deleted, 5 changed) OCL=25051 CL=25051
2009-02-15cleanups:Russ Cox11-234/+264
get rid of _ on private names in net. fix os_test file name list. newline not needed on Errorf. R=r DELTA=305 (34 added, 2 deleted, 269 changed) OCL=25047 CL=25047
2009-02-13convert composite literals from { } to ( ).Russ Cox6-48/+48
only non-trivial changes are in convlit1.go golden.out R=gri OCL=25019 CL=25024
2009-02-06portable stat for osRob Pike1-5/+5
add name to os.FD clean up some interfaces R=rsc DELTA=318 (231 added, 44 deleted, 43 changed) OCL=24624 CL=24627
2009-02-03bufio:Russ Cox1-4/+1
* avoid large copies * NewBufRead, NewBufWrite never fail * add BufReadWrite io: * add io.Close http, google/net/rpc: * add, use http.Conn.Hijack R=r DELTA=416 (202 added, 123 deleted, 91 changed) OCL=24153 CL=24238
2009-01-30update go code tree to new func rules.Russ Cox5-7/+7
R=r DELTA=367 (111 added, 59 deleted, 197 changed) OCL=23957 CL=23960
2009-01-26Add an accessor function os.FD.Fd() to get the fileIan Lance Taylor1-4/+4
descriptor. Use it in the PollServer code. 6g currently accepts this code without this change, but it should not. Test case for the bug is bug133.go. R=rsc DELTA=10 (0 added, 0 deleted, 10 changed) OCL=23451 CL=23486
2009-01-20delete exportRuss Cox16-71/+71
TBR=r OCL=23121 CL=23127
2009-01-16casify linux syscall dependents, plus a few stragglersRob Pike5-93/+93
R=rsc DELTA=97 (0 added, 0 deleted, 97 changed) OCL=22971 CL=22973
2009-01-16casify miscRuss Cox1-1/+1
R=r DELTA=247 (20 added, 50 deleted, 177 changed) OCL=22951 CL=22955
2009-01-16casify syscall and sequelaeRob Pike6-62/+62
R=rsc DELTA=337 (0 added, 1 deleted, 336 changed) OCL=22950 CL=22950
2009-01-16casify DNSRuss Cox9-211/+211
R=r DELTA=221 (0 added, 0 deleted, 221 changed) OCL=22946 CL=22948
2009-01-15convert strconvRuss Cox1-1/+1
R=r DELTA=568 (0 added, 9 deleted, 559 changed) OCL=22898 CL=22901
2009-01-15printf->Printf etc.Rob Pike2-7/+7
the raw fmt routines will be another, smaller but subtler pass. R=rsc DELTA=157 (0 added, 0 deleted, 157 changed) OCL=22851 CL=22851
2009-01-09simplify flag interface. no more BVal etc. you just get a pointer.Rob Pike1-3/+2
fixed everything except the tutorial. R=rsc DELTA=404 (94 added, 139 deleted, 171 changed) OCL=22414 CL=22422
2009-01-06new new & makeRuss Cox14-58/+58
R=r OCL=22166 CL=22166
2008-12-19[] and struct in interfaces.Russ Cox1-1/+1
other [] cleanup. convert() is gone. R=r DELTA=352 (144 added, 68 deleted, 140 changed) OCL=21660 CL=21662
2008-12-19allow Listen on ":9999" as an alias for "0.0.0.0:9999"Russ Cox2-9/+21
R=r DELTA=21 (12 added, 0 deleted, 9 changed) OCL=21653 CL=21653
2008-12-19change *map to map; *chan to chan; new(T) to new(*T)Russ Cox13-104/+96
fix bugs left over from *[] to [] conversion. TBR=r OCL=21576 CL=21581
2008-12-18convert *[] to [].Russ Cox12-148/+144
R=r OCL=21563 CL=21571
2008-12-18host and port name lookupRuss Cox13-102/+951
R=r,presotto DELTA=1239 (935 added, 281 deleted, 23 changed) OCL=21041 CL=21539