Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: new_queue
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (23 sloc) 0.433 kb
require "socket"
class TCPSocket
attr_accessor :connection_status
attr_accessor :internal_buffer
def initialize ip,port
@internal_buffer = []
end
def trigger
end
def self.open server_ip
end
def setsockopt *args; end
def >> crap
@internal_buffer << Marshal.dump(crap)
end
def read
@internal_buffer.shift
end
def write crap; end
def close
@connection_status = :closed
end
end
Jump to Line
Something went wrong with that request. Please try again.