summaryrefslogtreecommitdiff
path: root/src/lib/net/net.go
AgeCommit message (Collapse)AuthorFilesLines
2009-06-09mv src/lib to src/pkgRob Pike1-862/+0
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102
2009-06-01update Go tree to use new syscall package.Russ Cox1-64/+86
R=r DELTA=713 (109 added, 386 deleted, 218 changed) OCL=29707 CL=29722
2009-05-13Unix domain socket support, Linux and Darwin.Russ Cox1-71/+253
R=r DELTA=534 (353 added, 99 deleted, 82 changed) OCL=28783 CL=28783
2009-05-08throw away os._Error.Russ Cox1-5/+5
make some error types in a few packages R=r DELTA=110 (25 added, 46 deleted, 39 changed) OCL=28382 CL=28561
2009-05-07another attempt at avoiding IPv6 when it's not supported.Russ Cox1-21/+26
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 Cox1-1/+1
net code on IPv4-only machines. R=r DELTA=27 (25 added, 0 deleted, 2 changed) OCL=28404 CL=28411
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-17Step 1 of the Big Error Shift: make os.Error an interface and replace ↵Rob Pike1-51/+51
*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-16Convert go tree to hierarchical pkg directory:Russ Cox1-1/+1
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-03-11Rename os.FD to os.File.Russ Cox1-2/+2
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 Cox1-5/+60
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 Cox1-25/+47
R=r DELTA=368 (87 added, 14 deleted, 267 changed) OCL=25773 CL=25786
2009-02-15add os.ForkExec, os.Exec, os.Wait, exec.OpenCmd.Russ Cox1-0/+5
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-15cleanups:Russ Cox1-63/+74
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-01-30update go code tree to new func rules.Russ Cox1-3/+3
R=r DELTA=367 (111 added, 59 deleted, 197 changed) OCL=23957 CL=23960
2009-01-20delete exportRuss Cox1-12/+12
TBR=r OCL=23121 CL=23127
2009-01-16casify syscall and sequelaeRob Pike1-13/+13
R=rsc DELTA=337 (0 added, 1 deleted, 336 changed) OCL=22950 CL=22950
2009-01-16casify DNSRuss Cox1-48/+48
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-06new new & makeRuss Cox1-3/+3
R=r OCL=22166 CL=22166
2008-12-19allow Listen on ":9999" as an alias for "0.0.0.0:9999"Russ Cox1-9/+20
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 Cox1-16/+14
fix bugs left over from *[] to [] conversion. TBR=r OCL=21576 CL=21581
2008-12-18convert *[] to [].Russ Cox1-25/+25
R=r OCL=21563 CL=21571
2008-12-18host and port name lookupRuss Cox1-40/+31
R=r,presotto DELTA=1239 (935 added, 281 deleted, 23 changed) OCL=21041 CL=21539
2008-12-10assorted cleanup and fixesRuss Cox1-87/+33
R=r DELTA=209 (109 added, 79 deleted, 21 changed) OCL=20930 CL=20934
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-07update code to follow new semicolon rules:Russ Cox1-51/+51
* 1. all statements and declarations are terminated by semicolons * 2. semicolons can be omitted at top level. * 3. semicolons can be omitted before and after the closing ) or } * on a list of statements or declarations. /home/rsc/bin/addsemi and then diff+tweak. R=r,gri OCL=16620 CL=16643
2008-09-30i can import "net" in package netRuss Cox1-18/+18
and still have a variable named "net" R=r DELTA=18 (0 added, 0 deleted, 18 changed) OCL=16220 CL=16222
2008-09-26move src/syscall to src/lib/syscall.Russ Cox1-79/+92
enforce rule: all kernel data structures and constants go in syscall module. move things that should be in syscall out of net. make net a single package. R=r OCL=15985 CL=15994
2008-09-25Change the name of the result variable so that it does notIan Lance Taylor1-1/+1
hide the package "ip". R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=15914 CL=15914
2008-09-19export an os.Error constructorRuss Cox1-12/+6
R=r DELTA=20 (6 added, 7 deleted, 7 changed) OCL=15569 CL=15571
2008-09-17add network listening & testsRuss Cox1-22/+137
R=r,presotto OCL=15410 CL=15440
2008-09-16preliminary network - just Dial for nowRuss Cox1-0/+483
R=r,presotto OCL=15393 CL=15399