Advertisement
Guest User

notification_bid

a guest
Oct 26th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. public void notification_bid(int auction_id, String sender_username, int amount, String receiver_username) throws java.rmi.RemoteException{
  2. for(int i=0;i<SocketsTodos.size();i++){
  3. PrintWriter outToClient;
  4. try{
  5. outToClient = new PrintWriter(SocketsTodos.get(i).clientSocket.getOutputStream(),true);
  6. if(SocketsTodos.get(i).username.equals(receiver_username)){
  7. outToClient.println("type: notification_bid, id: "+auction_id+", user: "+sender_username+", amount: "+amount);
  8. }
  9. }catch(IOException e){
  10. e.printStackTrace();
  11. }
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement