我想从客户端向服务器发送一个对象(数组)。我使用ObjectInputStream和ObjectOutputStream。但是,这会调用一个错误,即这些方法没有在serverSocket类中定义。我该如何解决这种情况?? int[] x = new int[5];
ObjectOutputStream cO = new ObjectOutputStream(serverSocket.getOutputStream()); //he
class SimpleSocketClient public SimpleSocketClient() try Socketsocket = new Socket("89.185.150.131", 80); catch(Exception exc)
{System.out.println("Error in initialising the network - "
File "C:/Users/Public/Documents/Programming/Chat Client/Chat Client.py", line 21, in s = socket.socket((socket.AF_INET, socket.SOCK_STREAM))
AttributeError: type object 'socket' has no a