一个socket小Demo
server
1 | public class ServiceServer { |
client
1 | public class ServiceClient { |
task
1 | public class ServiceServerTask implements Runnable { |
处理类
1 | public class GetDataServiceImpl { |
1 | public class ServiceServer { |
1 | public class ServiceClient { |
1 | public class ServiceServerTask implements Runnable { |
1 | public class GetDataServiceImpl { |