Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package serveur_mt;
- import java.io.BufferedReader;
- import java.io.IOException;
- import java.io.InputStreamReader;
- import java.io.PrintStream;
- import java.net.Socket;
- public class Service extends Thread{
- private Socket socket;
- private BufferedReader sin;
- private PrintStream sout;
- public Service(Socket client) {
- socket=client;
- try {
- sin = new
- BufferedReader(new
- InputStreamReader(socket.getInputStream()));
- sout = new PrintStream(socket.getOutputStream());
- }catch(IOException ioe) {
- }
- }
- @Override
- public void run() {
- super.run();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement