Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove file streaming packets.

  • Loading branch information...
commit 939ff0f537d6e6493e0ad4d6155218c44c5dd00c 1 parent 70e8ce7
@roidrage roidrage authored
Showing with 0 additions and 68 deletions.
  1. +0 −68 lib/nanite/packets.rb
View
68 lib/nanite/packets.rb
@@ -39,74 +39,6 @@ def id_to_s(id)
end
- # Deprecated: File streaming will be removed
- # packet that means start of a file transfer
- # operation
- class FileStart < Packet
-
- attr_accessor :filename, :token, :dest
-
- def initialize(filename, dest, token, size=nil)
- @filename = filename
- @dest = dest
- @token = token
- @size = size
- end
-
- def self.json_create(o)
- i = o['data']
- new(i['filename'], i['dest'], i['token'], o['size'])
- end
-
- def to_s
- "#{super} <#{token}> #{filename} to #{dest}"
- end
- end
-
- # packet that means end of a file transfer
- # operation
- class FileEnd < Packet
-
- attr_accessor :token, :meta
-
- def initialize(token, meta, size=nil)
- @token = token
- @meta = meta
- @size = size
- end
-
- def self.json_create(o)
- i = o['data']
- new(i['token'], i['meta'], o['size'])
- end
-
- def to_s
- "#{super} <#{token}> meta #{meta}"
- end
- end
-
- # packet that carries data chunks during a file transfer
- class FileChunk < Packet
-
- attr_accessor :chunk, :token
-
- def initialize(token, size=nil, chunk=nil)
- @chunk = chunk
- @token = token
- @size = size
- end
-
- def self.json_create(o)
- i = o['data']
- new(i['token'], o['size'], i['chunk'])
- end
-
- def to_s
- "#{super} <#{token}>"
- end
- end
- # </deprecated>
-
# packet that means a work request from mapper
# to actor node
#
Please sign in to comment.
Something went wrong with that request. Please try again.