summaryrefslogtreecommitdiff
path: root/src/lib/net
AgeCommit message (Collapse)AuthorFilesLines
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
2008-12-10DNS messagesRuss Cox2-2/+686
R=r DELTA=685 (683 added, 0 deleted, 2 changed) OCL=20926 CL=20951
2008-12-10assorted cleanup and fixesRuss Cox1-87/+33
R=r DELTA=209 (109 added, 79 deleted, 21 changed) OCL=20930 CL=20934
2008-12-09replace assembly casts with unsafe.pointerRuss Cox2-10/+12
R=r DELTA=178 (18 added, 101 deleted, 59 changed) OCL=20822 CL=20826
2008-11-25change meaning of $GOMAXPROCS to number of cpus to use,Russ Cox1-0/+2
not number of threads. can still starve all the other threads, but only by looping, not by waiting in a system call. fix darwin syscall.Syscall6 bug. fix chanclient bug. delete $GOMAXPROCS from network tests. add stripped down printf, sys.printhex to runtime. R=r DELTA=355 (217 added, 36 deleted, 102 changed) OCL=20017 CL=20019
2008-11-19refine gobuild: the files must be *_test.go not *test.goRob Pike1-14/+7
this causes complications R=rsc DELTA=1724 (849 added, 856 deleted, 19 changed) OCL=19667 CL=19667
2008-11-19gobuild: add coverage rule, ignore files in package main.Russ Cox1-0/+4
R=r DELTA=55 (41 added, 11 deleted, 3 changed) OCL=19594 CL=19598
2008-11-19leave 6.out around after gotest;Russ Cox1-1/+1
delete it in make clean. R=r DELTA=10 (0 added, 0 deleted, 10 changed) OCL=19542 CL=19581
2008-11-18gobuild changes.Russ Cox1-14/+26
* handles multiple packages per directory * scans directory for files if given no arguments * infers package name * includes test rule invoking gotest R=r DELTA=746 (444 added, 150 deleted, 152 changed) OCL=19504 CL=19521
2008-11-17correctly rounded floating-point conversionsRuss Cox1-3/+3
in new package strconv. move atoi etc to strconv too. update fmt, etc to use strconv. R=r DELTA=2232 (1691 added, 424 deleted, 117 changed) OCL=19286 CL=19380
2008-10-29update linux for int/int32Russ Cox1-3/+3
R=r DELTA=7 (0 added, 0 deleted, 7 changed) OCL=18050 CL=18069
2008-10-07Unterminated declaration breaks build.Cary Hull1-1/+1
R=rsc APPROVED=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=16688 CL=16690