Skip to content

Commit

Permalink
Uncomment socket.
Browse files Browse the repository at this point in the history
  • Loading branch information
AtefR committed Oct 10, 2020
1 parent da8d6f6 commit 103688f
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions Sniffer/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,29 +95,29 @@ public MainViewModel()
Packets = new ObservableCollection<Packet>();
FilteredPackets = new ObservableCollection<Packet>();

AddToPackets(PacketType.Client, new byte[] { 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04 });
AddToPackets(PacketType.Client, new byte[] { 0x01, 0x02, 0x03, 0x04 });
AddToPackets(PacketType.Client, new byte[] { 0x01, 0x02, 0x03, 0x04 });
AddToPackets(PacketType.Server, new byte[] { 0x01, 0x02, 0x03, 0x04 });
AddToPackets(PacketType.Client, new byte[] { 0x01, 0x02, 0x03, 0x04 });
AddToPackets(PacketType.Server, new byte[] { 0x01, 0x02, 0x03, 0x04 });
AddToPackets(PacketType.Client, new byte[] { 0x01, 0x02, 0x03, 0x04 });
AddToPackets(PacketType.Server, new byte[] { 0x01, 0x02, 0x03, 0x04 });

//if (!DesignerProperties.GetIsInDesignMode(new DependencyObject()))
//{
// _client = new Client(string.Empty);

// _client.Logger.Level = Logger.LogLevel.Error;
// _client.Logger.Output = Logger.LogOutput.Console;

// _client.Connection.OnReceivedClientMessage += Proxy_OnReceivedClientMessage;
// _client.Connection.OnReceivedServerMessage += Proxy_OnReceivedServerMessage;

// _client.Connection.IsClientPacketParsingEnabled = false;
// _client.Connection.IsServerPacketParsingEnabled = false;
// _client.StartConnection(httpPort: 7171, loginWebService: string.Empty);
//}
//AddToPackets(PacketType.Client, new byte[] { 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04 });
//AddToPackets(PacketType.Client, new byte[] { 0x01, 0x02, 0x03, 0x04 });
//AddToPackets(PacketType.Client, new byte[] { 0x01, 0x02, 0x03, 0x04 });
//AddToPackets(PacketType.Server, new byte[] { 0x01, 0x02, 0x03, 0x04 });
//AddToPackets(PacketType.Client, new byte[] { 0x01, 0x02, 0x03, 0x04 });
//AddToPackets(PacketType.Server, new byte[] { 0x01, 0x02, 0x03, 0x04 });
//AddToPackets(PacketType.Client, new byte[] { 0x01, 0x02, 0x03, 0x04 });
//AddToPackets(PacketType.Server, new byte[] { 0x01, 0x02, 0x03, 0x04 });

if (!DesignerProperties.GetIsInDesignMode(new DependencyObject()))
{
_client = new Client(string.Empty);

_client.Logger.Level = Logger.LogLevel.Error;
_client.Logger.Output = Logger.LogOutput.Console;

_client.Connection.OnReceivedClientMessage += Proxy_OnReceivedClientMessage;
_client.Connection.OnReceivedServerMessage += Proxy_OnReceivedServerMessage;

_client.Connection.IsClientPacketParsingEnabled = false;
_client.Connection.IsServerPacketParsingEnabled = false;
_client.StartConnection(httpPort: 7171, loginWebService: string.Empty);
}
}

private void Proxy_OnReceivedClientMessage(byte[] data)
Expand Down

0 comments on commit 103688f

Please sign in to comment.