Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (23 sloc) 433 Bytes
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
Something went wrong with that request. Please try again.