R
RFleming
Hello,
I am somewhat new to JAVA, but not to programming in general. I
recently wrote a class that uses the NIO Socket class. I would like
to now make this class handle multiple sockets. can I do this? For
example: Socket[] socketarray = null; socketarray[1]
("127.0.0.1","8000");
If so I also can not seem to figure out how to do..... Socket
tempsocket = socketarray[1];
I have not seen any examples of arrays that appear to use Class
objects such as the Socket, just using primitive types such as ints,
bools, etc..... Any help would be greatly appreciated!
Thanks
Ryan
I am somewhat new to JAVA, but not to programming in general. I
recently wrote a class that uses the NIO Socket class. I would like
to now make this class handle multiple sockets. can I do this? For
example: Socket[] socketarray = null; socketarray[1]
("127.0.0.1","8000");
If so I also can not seem to figure out how to do..... Socket
tempsocket = socketarray[1];
I have not seen any examples of arrays that appear to use Class
objects such as the Socket, just using primitive types such as ints,
bools, etc..... Any help would be greatly appreciated!
Thanks
Ryan