g****n 发帖数: 18 | 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!!! | c****e 发帖数: 90 | 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!!!
|
|