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

關於 judge_server.py #3

Open
morris821028 opened this issue Dec 15, 2015 · 0 comments
Open

關於 judge_server.py #3

morris821028 opened this issue Dec 15, 2015 · 0 comments

Comments

@morris821028
Copy link
Member

p = subprocess.Popen(['ssh', '[email protected]', './butler'], stdin = subprocess.PIPE, stdout = subprocess.PIPE)

將遠端 judge server 上的 butler.py 中的標準輸入串流抓來,並且自訂協定傳輸測試資料,格式為

"<資料長度> <資料的十六進制表示法>"

當資料長度為負數時,完成一組測資資料傳輸,接著進行 judge 工作。若要進行多台 judge server,除了目前的標準傳流的寫法外,也可以利用其他方案傳輸資料。

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

1 participant