• 2022-05-28 问题

    使用套接字编程时,为了接收对方发来的数据,则需要使用哪个方法() A: getInetAddress() B: getLocalPort() C: getOutputStream() D: getInputStream()

    使用套接字编程时,为了接收对方发来的数据,则需要使用哪个方法() A: getInetAddress() B: getLocalPort() C: getOutputStream() D: getInputStream()

  • 2022-06-28 问题

    使用Socket套接字编程时,为了向对方发送数据,需要使用哪个方法获取流对象( )。 A: getInetAddress() B: getLocalPort() C: getOutputStream() D: getInputStream()

    使用Socket套接字编程时,为了向对方发送数据,需要使用哪个方法获取流对象( )。 A: getInetAddress() B: getLocalPort() C: getOutputStream() D: getInputStream()

  • 2022-06-29 问题

    Socket类的哪个方法返回Socket对象绑定的本地端口? A: getPort() B: getLocalPort() C: getRemotePort() D: 不存在这样的方法,因为Socket对象绑定的本地端口对程序是透明的。

    Socket类的哪个方法返回Socket对象绑定的本地端口? A: getPort() B: getLocalPort() C: getRemotePort() D: 不存在这样的方法,因为Socket对象绑定的本地端口对程序是透明的。

  • 1