D
Dott. Hellboy
Hello
i'm moving the first steps on ruby. I'm writing a simple chat server (a
porting from my java project) just for trying.
now i've a doubt about the Thread class, May i extend it?
I'm thinking something like this:
class ServThread < Thread
def initialize(socket)
super
@soc = socket
end
end
But i didn't find any reference about it. Maybe i can't do that.
any suggest?
Thanks
Dott Hellboy
i'm moving the first steps on ruby. I'm writing a simple chat server (a
porting from my java project) just for trying.
now i've a doubt about the Thread class, May i extend it?
I'm thinking something like this:
class ServThread < Thread
def initialize(socket)
super
@soc = socket
end
end
But i didn't find any reference about it. Maybe i can't do that.
any suggest?
Thanks
Dott Hellboy