Click here to Skip to main content
15,922,533 members
Home / Discussions / C#
   

C#

 
Questionprotocole smtp Pin
MemberDotNetting30-Mar-12 23:04
MemberDotNetting30-Mar-12 23:04 
AnswerRe: protocole smtp Pin
Richard MacCutchan30-Mar-12 23:28
mveRichard MacCutchan30-Mar-12 23:28 
AnswerRe: protocole smtp Pin
Eddy Vluggen31-Mar-12 0:18
professionalEddy Vluggen31-Mar-12 0:18 
Questioncode for a die game(1 player) Pin
twinexrunz30-Mar-12 20:23
twinexrunz30-Mar-12 20:23 
AnswerRe: code for a die game(1 player) Pin
Pete O'Hanlon30-Mar-12 20:59
mvePete O'Hanlon30-Mar-12 20:59 
AnswerRe: code for a die game(1 player) Pin
OriginalGriff31-Mar-12 5:03
mveOriginalGriff31-Mar-12 5:03 
AnswerRe: code for a die game(1 player) Pin
PIEBALDconsult31-Mar-12 5:07
mvePIEBALDconsult31-Mar-12 5:07 
QuestionBinding DataTable to MSChart Pin
MAW3030-Mar-12 14:56
MAW3030-Mar-12 14:56 
QuestionStuck - trying to get going with C# Pin
JTmetoo30-Mar-12 8:48
JTmetoo30-Mar-12 8:48 
GeneralRe: Stuck - trying to get going with C# Pin
Not Active30-Mar-12 8:55
mentorNot Active30-Mar-12 8:55 
AnswerRe: Stuck - trying to get going with C# Pin
RobCroll30-Mar-12 14:32
RobCroll30-Mar-12 14:32 
Question#PRAGMA Pin
KUNWAR99930-Mar-12 8:44
KUNWAR99930-Mar-12 8:44 
AnswerRe: #PRAGMA Pin
RobCroll30-Mar-12 14:24
RobCroll30-Mar-12 14:24 
GeneralRe: #PRAGMA Pin
KUNWAR99930-Mar-12 22:23
KUNWAR99930-Mar-12 22:23 
GeneralRe: #PRAGMA Pin
Richard MacCutchan30-Mar-12 23:26
mveRichard MacCutchan30-Mar-12 23:26 
GeneralRe: #PRAGMA Pin
KUNWAR99930-Mar-12 23:39
KUNWAR99930-Mar-12 23:39 
GeneralRe: #PRAGMA Pin
Richard MacCutchan31-Mar-12 0:03
mveRichard MacCutchan31-Mar-12 0:03 
AnswerRe: #PRAGMA Pin
Luc Pattyn31-Mar-12 3:49
sitebuilderLuc Pattyn31-Mar-12 3:49 
GeneralRe: #PRAGMA Pin
Richard MacCutchan31-Mar-12 4:18
mveRichard MacCutchan31-Mar-12 4:18 
GeneralRe: #PRAGMA Pin
Pete O'Hanlon31-Mar-12 4:03
mvePete O'Hanlon31-Mar-12 4:03 
AnswerRe: #PRAGMA Pin
harold aptroot31-Mar-12 4:03
harold aptroot31-Mar-12 4:03 
QuestionChange the packet IP (source or destination) with Pcap.net Pin
falukky30-Mar-12 1:10
falukky30-Mar-12 1:10 
AnswerRe: Change the packet IP (source or destination) with Pcap.net Pin
Richard Andrew x6430-Mar-12 4:42
professionalRichard Andrew x6430-Mar-12 4:42 
GeneralRe: Change the packet IP (source or destination) with Pcap.net Pin
falukky30-Mar-12 5:03
falukky30-Mar-12 5:03 
i have try something that i think is correct but in the line sendBuffer.Enqueue(newPacket) error received: Failed enqueueing to SendQueue

// Allocate a send buffer
using (PacketSendBuffer sendBuffer = new PacketSendBuffer((uint)capLength))
{
    // Fill the buffer with the packets from the file
    int numPackets = 0;
    Packet packet;
    while (inputCommunicator.ReceivePacket(out packet) == PacketCommunicatorReceiveResult.Ok)
    {
        //sendBuffer.Enqueue(packet);
        IpV4Layer ipLayer = (IpV4Layer)packet.Ethernet.IpV4.ExtractLayer();
        ipLayer.Destination = new IpV4Address("11.12.13.14");
        EthernetLayer ethernet = (EthernetLayer)packet.Ethernet.ExtractLayer();
        PayloadLayer payload = (PayloadLayer)packet.Ethernet.Payload.ExtractLayer();
        Packet newPacket = PacketBuilder.Build(DateTime.Now, ethernet, ipLayer, ipLayer, payload);
        sendBuffer.Enqueue(newPacket);
        ++numPackets;
    }

    outputCommunicator.Transmit(sendBuffer, isSync); //Transmit the queue
}

GeneralRe: Change the packet IP (source or destination) with Pcap.net Pin
Richard Andrew x6430-Mar-12 5:08
professionalRichard Andrew x6430-Mar-12 5:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.