Redian新闻
>
socket and simple web browser
avatar
socket and simple web browser# Java - 爪哇娇娃
g*n
1
Hello,
I have a question on simple Java web browser. After building a simple web
browser, the browser can retrieve a webpage from a server. Now I need to
calculate round trip time from the browser to the server by sending a 100-byte
message to the server and waiting for the server to send the message back to
the browser. Is there a way to do that using web browser? Currently the web
browser can only read from the server and not able to send message to the
server.
Thanks!!!
avatar
c*e
2
Why don't you just write your own client?
Which just news a socket,
connects to the server then
send what ever the server accepts
(you have the server's code) then waits for the
reply.
I saw serveral of your questions on this board.
And I guess you are now in deep water. May
I suggest you experiment with "Thread" and "Socket"
seperatly before you gain some idea about what
they do by their own?
Also, Computer Science department in most schools
offer courses on Java. Sit through one of them
might

【在 g****n 的大作中提到】
: Hello,
: I have a question on simple Java web browser. After building a simple web
: browser, the browser can retrieve a webpage from a server. Now I need to
: calculate round trip time from the browser to the server by sending a 100-byte
: message to the server and waiting for the server to send the message back to
: the browser. Is there a way to do that using web browser? Currently the web
: browser can only read from the server and not able to send message to the
: server.
: Thanks!!!

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。