summaryrefslogtreecommitdiff
path: root/src/pkg/net
AgeCommit message (Collapse)AuthorFilesLines
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý31-236/+1493
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý23-53/+342
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý36-329/+1027
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý12-393/+509
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý1-2/+2
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý13-96/+411
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý38-184/+1940
2010-06-29net: initial attempt to implement windows versionAlex Brainman2-2/+386
R=rsc, Mateusz Czaplinski CC=golang-dev http://codereview.appspot.com/1600041 Committer: Russ Cox <rsc@golang.org>
2010-06-30 net: add support for DNS SRV requests.Kirklin McDonald2-23/+82
Fixes issue 758. R=rsc, adg CC=golang-dev http://codereview.appspot.com/1078041 Committer: Andrew Gerrand <adg@golang.org>
2010-06-29Move the function Run() back into fd.go.Vinu Rajashekhar2-46/+44
R=iant CC=golang-dev, rsc http://codereview.appspot.com/1748041 Committer: Ian Lance Taylor <iant@golang.org>
2010-06-28Move the functions, newPollServer and Run, from fd.goVinu Rajashekhar3-75/+88
to a new source file. R=iant, rsc CC=golang-dev http://codereview.appspot.com/1670046 Committer: Ian Lance Taylor <iant@golang.org>
2010-06-21net: move Dial, Listen out of net.go.Russ Cox3-172/+180
now net.go is only type definitions, not active code. R=r CC=golang-dev http://codereview.appspot.com/1708046
2010-06-21net: Fix ICMP test.Christopher Wedgwood1-2/+2
Ping IDs should be limited to 16-bits. Fix failure printing. R=rsc CC=golang-dev, jean-christophe smith <jeanchristophe.smith http://codereview.appspot.com/1682043 Committer: Russ Cox <rsc@golang.org>
2010-06-20reflect: add Kind, remove Int8Type, Int8Value, etc.Russ Cox1-30/+41
update other code to match. R=r CC=golang-dev http://codereview.appspot.com/1680044
2010-06-08misc cleanup: gofmt + &x -> x[0:] conversionRuss Cox3-10/+10
R=gri CC=golang-dev http://codereview.appspot.com/1620042
2010-05-31net: fix typoAndrew Gerrand1-1/+1
Fixes issue 819. R=rsc CC=golang-dev http://codereview.appspot.com/1421041
2010-05-27changes &x -> x[0:] for array to slice conversionRuss Cox7-17/+17
R=gri CC=golang-dev http://codereview.appspot.com/1326042
2010-05-24net: udp, implement BindToDeviceChristopher Wedgwood1-0/+10
R=rsc CC=golang-dev, r http://codereview.appspot.com/1271041 Committer: Russ Cox <rsc@golang.org>
2010-05-21go/printer, gofmt: fix printing of labels,Robert Griesemer1-1/+2
apply gofmt to src, misc Fixes issue 752. R=rsc CC=golang-dev http://codereview.appspot.com/1240044 Committer: Robert Griesemer <gri@golang.org>
2010-05-21net: implement raw socketsChristopher Wedgwood8-10/+519
R=rsc CC=golang-dev http://codereview.appspot.com/684041 Committer: Russ Cox <rsc@golang.org>
2010-05-20netFD: fix race between Close and Read/WriteMichael Hoisie1-2/+9
Fixes issue 783. R=rsc, cw CC=golang-dev http://codereview.appspot.com/1207043 Committer: Russ Cox <rsc@golang.org>
2010-05-05Fix a typo in net/unixsockConrad Meyer1-1/+1
R=golang-dev, gri CC=golang-dev http://codereview.appspot.com/1113041 Committer: Robert Griesemer <gri@golang.org>
2010-04-29net: use short variable declarationChristopher Wedgwood1-2/+1
R=rsc CC=golang-dev http://codereview.appspot.com/1019043 Committer: Russ Cox <rsc@golang.org>
2010-04-29net: parser should handle EOF without newline properly.Christopher Wedgwood1-10/+14
Fixes issue 686. R=rsc CC=adg, golang-dev http://codereview.appspot.com/979044 Committer: Russ Cox <rsc@golang.org>
2010-04-28net: do not require newline at end of resolv.confRuss Cox1-0/+5
Fixes issue 686. R=adg CC=golang-dev http://codereview.appspot.com/961046
2010-04-27net: drop non-RHEL-4.6 ports from testRuss Cox1-2/+0
Fixes issue 610. R=adg CC=golang-dev http://codereview.appspot.com/1006044
2010-04-27net: fix bug in internetSocket introduced by error cleanup.Russ Cox1-1/+1
Fixes issue 750. R=adg CC=golang-dev http://codereview.appspot.com/988043
2010-04-26net: introduce net.Error interfaceRuss Cox11-317/+339
Adds two more methods, Timeout and Temporary. Implemented by os.Errno too. The intent is to make the checks for os.EAGAIN a little less clunky. It should also let us clean up a bug that Mike Solomon pointed out: if a network server gets an "out of file descriptors" error from Accept, the listener should not stop. It will be able to check this because that error would have Temporary() == true. Also clean up some underscore names. Fixes issue 442. R=r CC=golang-dev, msolo http://codereview.appspot.com/957045
2010-04-26net: add PipeRuss Cox3-0/+120
R=r CC=golang-dev http://codereview.appspot.com/1004043
2010-04-18net: fix bugs in packStructValueMichael Hoisie1-4/+4
packStructValue was cutting off last byte of uint32 in _Dns_msg.Unpack, use packRR for rr types R=rsc CC=golang-dev http://codereview.appspot.com/844048 Committer: Russ Cox <rsc@golang.org>
2010-04-06net: use chan bool instead of chan *netFD to avoid cycleRuss Cox1-8/+8
The cycle is *netFD -> cw chanl *netFD in struct -> same *netFD in channel read buffer. Because channels are finalized, the cycle makes them uncollectable. A better fix is to make channels not finalized anymore, and that will happen, but this is an easy, reasonable workaround until then. Another good fix would be to zero the channel receive buffer entry after the receive. That too will happen. R=r CC=golang-dev http://codereview.appspot.com/875043
2010-03-30simplify various code using new map index ruleRuss Cox1-2/+1
R=r CC=golang-dev http://codereview.appspot.com/833044
2010-03-30single argument panicRuss Cox2-7/+3
note that sortmain.go has been run through hg gofmt; only the formatting of the day initializers changed. i'm happy to revert that formatting if you'd prefer. stop on error in doc/progs/run R=r CC=golang-dev http://codereview.appspot.com/850041
2010-03-24delete all uses of panicln by rewriting them using panic or,Rob Pike1-1/+1
in the tests, println+panic. gofmt some tests too. R=rsc CC=golang-dev http://codereview.appspot.com/741041
2010-03-16net: fix IPMask.String not to crash on all-0xff maskRuss Cox1-21/+38
R=r CC=golang-dev http://codereview.appspot.com/438042
2010-03-03net: put [ ] around IPv6 addresses for DialRuss Cox1-1/+5
Update issue 538. R=r CC=golang-dev http://codereview.appspot.com/229045
2010-03-03net: fix nil deref in testTimeout when Dial failsRuss Cox1-1/+2
Pointed out by Scott Schwartz. Fixes issue 637. R=scotts CC=golang-dev http://codereview.appspot.com/225042
2010-03-03net: fix network timeout boundary condition.Stephen Ma1-1/+1
Fixes issue 472. R=golang-dev CC=golang-dev http://codereview.appspot.com/223108
2010-03-03net: correct DNS configurationStephen Ma2-3/+3
Set defaults to the same values as various C DNS resolver libraries. Use the timeout value from the configuration. Fixes issue 632. R=rsc CC=golang-dev http://codereview.appspot.com/223094
2010-03-02gofmt: experiment: align values in map composites where possibleRobert Griesemer2-14/+14
- gofmt -w src misc - looking for feedback R=rsc, r CC=golang-dev http://codereview.appspot.com/223076
2010-02-25strings: delete Runes, BytesRuss Cox2-3/+2
gofmt -w -r 'strings.Bytes(a) -> []byte(a)' src/cmd src/pkg test/bench gofmt -w -r 'strings.Runes(a) -> []int(a)' src/cmd src/pkg test/bench delete unused imports R=r CC=golang-dev http://codereview.appspot.com/224062
2010-02-25Fix small typo in net package.Stephen Weinberg1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/224061 Committer: Russ Cox <rsc@golang.org>
2010-02-22net: disable UDP server testRuss Cox1-3/+6
has been flaking on various architectures. not sure why, but doesn't seem to be Go's fault. Fixes issue 617. R=r CC=golang-dev http://codereview.appspot.com/217093
2010-02-10net: use slightly less predictable dns request idRuss Cox1-1/+3
not trying to be secure, just not repetitive (sending with the same id repeatedly makes some resolvers stop replying.) eventually we'll replace this with linking against the system's native resolver. R=p CC=golang-dev http://codereview.appspot.com/207051
2010-01-26net: fix segfault if /etc/hosts fails to open or doesn't existMichael Hoisie1-1/+3
R=rsc CC=golang-dev, r http://codereview.appspot.com/194043 Committer: Russ Cox <rsc@golang.org>
2010-01-25net: parse aliases in /etc/hosts correctlyAndrey Mirtchovski3-3/+13
Previous behaviour only picked the first entry (official hostname) but not the aliases. R=rsc CC=golang-dev http://codereview.appspot.com/193092 Committer: Russ Cox <rsc@golang.org>
2010-01-18net: enable UDP broadcast before it is needed (instead of after)Russ Cox2-5/+4
Fixes issue 526. R=r CC=golang-dev http://codereview.appspot.com/186211
2010-01-15Use /etc/hosts when resolving names.Yves Junqueira6-2/+148
http://code.google.com/p/go/issues/detail?id=313 This conflics with Chris' patch at: http://codereview.appspot.com/181063 But I believe this is more complete since it has a simple caching and proper tests. R=cw, rsc CC=golang-dev http://codereview.appspot.com/183066 Committer: Russ Cox <rsc@golang.org>
2010-01-05net: make Dial correctly return nil on error.Roger Peppe1-3/+15
R=rsc CC=golang-dev http://codereview.appspot.com/181135 Committer: Russ Cox <rsc@golang.org>
2009-12-151) Change default gofmt default settings forRobert Griesemer24-1249/+1249
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 3rd set of files. R=rsc CC=golang-dev http://codereview.appspot.com/180048