Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for File/IO objects to migrate_simple_value #8

Open
postmodern opened this issue Apr 5, 2014 · 2 comments
Open

Add support for File/IO objects to migrate_simple_value #8

postmodern opened this issue Apr 5, 2014 · 2 comments

Comments

@postmodern
Copy link
Contributor

It should be possible to pass a TCPSocket to a new Thread:

loop do
  Thread.new(@server.accept) do |client|
    client.puts "hello"
    client.close
  end
end
@mattn
Copy link
Owner

mattn commented Apr 7, 2014

The TCPSocket you are talking is https://github.com/iij/mruby-io ?

@postmodern
Copy link
Contributor Author

@mattn TCPSocket is actually defined in https://github.com/iij/mruby-socket, which depends on mruby-io.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants