摘要:
~~ TIME SERVER ~~Write a TCP time server!Your server should listen to TCP connections on port 8000. For eachconnection you must write the current date & time in the format: YYYY-MM-DD hh:mmfollowed by a newline character. Month, day, hour and minute must bezero-filled to 2 integers. For example: 阅读全文
摘要:
~~ JUGGLING ASYNC ~~其实就是一个循环,在循环里面输出的顺序,和排列后在外面的顺序不一样,这是为什么呢?用第三方async包,直接报错了……This problem is the same as the previous problem (HTTP COLLECT) inthat you need to use `http.get()`. However, this time you will beprovided with three URLs as the first three command-line arguments.You must collect the co 阅读全文
摘要:
~~ HTTP COLLECT ~~Write a program that performs an HTTP GET request to a URL provided toyou as the first command-line argument. Collect all data from theserver (not just the first "data" event) and then write two lines tothe console (stdout).The first line you write should just be an integ 阅读全文