Open minghao-wang opened 2 years ago
Please accept my pr and add socket support on this codebase: When I connect to the port (ex 233) with tcp tool (ex netcat nc localhost 233) Given input nothing Then I get out like:
nc localhost 233
Website{id=1, name='Google', url='https://www.google.cm/', alexa=1, country='USA'} Website{id=2, name='淘宝', url='https://www.taobao.com/', alexa=13, country='CN'} Website{id=3, name='菜鸟教程', url='http://www.runoob.com', alexa=5892, country=''} Website{id=4, name='微博', url='http://weibo.com/', alexa=20, country='CN'} Website{id=5, name='Facebook', url='https://www.facebook.com/', alexa=3, country='USA'}
Please refer to this https://www.baeldung.com/a-guide-to-java-sockets for more API info
Please accept my pr and add socket support on this codebase: When I connect to the port (ex 233) with tcp tool (ex netcat
nc localhost 233
) Given input nothing Then I get out like: