Ignore:
Timestamp:
Jan 26, 2011, 9:52:15 PM (11 years ago)
Author:
schwittmann
Message:

Display external clients in statistics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/KeySearcher/Server/Server.cs

    r2458 r2495  
    1616    #region Events
    1717
    18     public delegate void JobCompletedDelegate(EndPoint ipep, JobResult j);
     18    public delegate void JobCompletedDelegate(EndPoint ipep, JobResult j, String name);
    1919    public event JobCompletedDelegate OnJobCompleted;
    2020
     
    152152
    153153        bool identified = false;
     154        String name = string.Empty;
    154155        try
    155156        {
     
    161162                    case ClientOpcodes.HELLO:
    162163                        {
    163                             String name = wrapped.ReadString();
     164                            name = wrapped.ReadString();
    164165                            String password = wrapped.ReadString();
    165166                            if (OnClientAuth == null || !OnClientAuth(ep, name, password))
     
    199200                            if (OnJobCompleted != null)
    200201                            {
    201                                 OnJobCompleted(ep, rs);
     202                                OnJobCompleted(ep, rs, name);
    202203                            }
    203204                        }
Note: See TracChangeset for help on using the changeset viewer.