Separate client / server

This commit is contained in:
Arlo Breault 2016-01-07 09:26:02 -08:00
parent e8b57fe4f3
commit da563bc913
4 changed files with 6 additions and 7 deletions

6
.gitignore vendored
View file

@ -1,7 +1,9 @@
*.swp
*.swo
*.swn
ignore/
*.swm
.DS_Store
datadir/
snowflake
client/snowflake
server/snowflake
snowflake.log

View file

View file

@ -55,11 +55,8 @@ func (c *webRTCConn) Read(b []byte) (int, error) {
func (c *webRTCConn) Write(b []byte) (int, error) {
log.Printf("webrtc Write %d %q", len(b), string(b))
err := c.dc.Send(b)
if err != nil {
return 0, err
}
return len(b), err
dc.Send(b)
return len(b), nil
}
func (c *webRTCConn) Close() error {