Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4)

Side by Side Diff: websocket/websocket.go

Issue 97950043: code review 97950043: go.net: fix various typos (Closed)
Patch Set: diff -r 79f92c7cc23c https://code.google.com/p/go.net Created 10 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « spdy/types.go ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 // Package websocket implements a client and server for the WebSocket protocol 5 // Package websocket implements a client and server for the WebSocket protocol
6 // as specified in RFC 6455. 6 // as specified in RFC 6455.
7 package websocket 7 package websocket
8 8
9 import ( 9 import (
10 "bufio" 10 "bufio"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 Len() int 122 Len() int
123 } 123 }
124 124
125 // frameReaderFactory is an interface to creates new frame reader. 125 // frameReaderFactory is an interface to creates new frame reader.
126 type frameReaderFactory interface { 126 type frameReaderFactory interface {
127 NewFrameReader() (r frameReader, err error) 127 NewFrameReader() (r frameReader, err error)
128 } 128 }
129 129
130 // frameWriter is an interface to write a WebSocket frame. 130 // frameWriter is an interface to write a WebSocket frame.
131 type frameWriter interface { 131 type frameWriter interface {
132 » // Writer is to write playload of the frame. 132 » // Writer is to write payload of the frame.
133 io.WriteCloser 133 io.WriteCloser
134 } 134 }
135 135
136 // frameWriterFactory is an interface to create new frame writer. 136 // frameWriterFactory is an interface to create new frame writer.
137 type frameWriterFactory interface { 137 type frameWriterFactory interface {
138 NewFrameWriter(payloadType byte) (w frameWriter, err error) 138 NewFrameWriter(payloadType byte) (w frameWriter, err error)
139 } 139 }
140 140
141 type frameHandler interface { 141 type frameHandler interface {
142 HandleFrame(frame frameReader) (r frameReader, err error) 142 HandleFrame(frame frameReader) (r frameReader, err error)
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 } 402 }
403 403
404 // receive JSON type T 404 // receive JSON type T
405 var data T 405 var data T
406 websocket.JSON.Receive(ws, &data) 406 websocket.JSON.Receive(ws, &data)
407 407
408 // send JSON type T 408 // send JSON type T
409 websocket.JSON.Send(ws, data) 409 websocket.JSON.Send(ws, data)
410 */ 410 */
411 var JSON = Codec{jsonMarshal, jsonUnmarshal} 411 var JSON = Codec{jsonMarshal, jsonUnmarshal}
OLDNEW
« no previous file with comments | « spdy/types.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b