Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void notification_bid(int auction_id, String sender_username, int amount, String receiver_username) throws java.rmi.RemoteException{
- for(int i=0;i<SocketsTodos.size();i++){
- PrintWriter outToClient;
- try{
- outToClient = new PrintWriter(SocketsTodos.get(i).clientSocket.getOutputStream(),true);
- if(SocketsTodos.get(i).username.equals(receiver_username)){
- outToClient.println("type: notification_bid, id: "+auction_id+", user: "+sender_username+", amount: "+amount);
- }
- }catch(IOException e){
- e.printStackTrace();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement