Results 1 to 19 of 19

Thread: Client/Server using TCP/IP with Winsock....

Hybrid View

  1. #1
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: Client/Server using TCP/IP with Winsock....

    Nope there are no classes included in the zip.


    Maybe you could just quickly attach the class file itself? And I can put it into the folder.

    Quote Originally Posted by VB Error
    Path not found: 'N:\CNP485\CRC32\Client\clsCRC.cls'--Continue loading project?'

  2. #2

    Thread Starter
    New Member
    Join Date
    Oct 2006
    Posts
    12

    Re: Client/Server using TCP/IP with Winsock....

    I'm sorry. My bad. I just checked it again and it didn't included. I don't know why but when I run the program it shows up.

    Here is the class file.
    Attached Files Attached Files

  3. #3
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: Client/Server using TCP/IP with Winsock....

    Ok I'm not exactly sure what you're trying to do here...

    When they click the Send Error packet button, you want it to change the first letter of the first name? (So the CRC fails)?

    And just send that to the server and have the CRC of the error packet show up in the "Error CRC32" field?

  4. #4
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: Client/Server using TCP/IP with Winsock....

    Also on the Calculate CRC command button, you are putting the CRC value into the same textbox each time, so the previous one just gets overwritten.

    VB Code:
    1. Private Sub Command1_Click()
    2.   Dim OldTimer As Single
    3.  
    4.   m_CRC.Algorithm = Combo1.ListIndex
    5.  
    6.   txtCRC32.Text = Hex(m_CRC.CalculateString(txtFirstName.Text))
    7.   txtCRC32.Text = Hex(m_CRC.CalculateString(txtMajor.Text))
    8.   txtCRC32.Text = Hex(m_CRC.CalculateString(txtAge.Text))
    9.   txtCRC32.Text = Hex(m_CRC.CalculateString(txtGPA.Text))
    10.   txtCRC32.Text = Hex(m_CRC.CalculateString(txtGender.Text))
    11.  
    12.   txtCRC32.Text = Hex(m_CRC.CalculateString(txtIP(0).Text))
    13.   txtCRC32.Text = Hex(m_CRC.CalculateString(txtIP(1).Text))

    You should build the entire packet as you would in the sckClient_Connect() event, and then perform the CRC on that entire packet.

  5. #5

    Thread Starter
    New Member
    Join Date
    Oct 2006
    Posts
    12

    Re: Client/Server using TCP/IP with Winsock....

    Here is the requirement.
    The client program must have a button on calculate and display the crc32 of the message (in hexadecimal) without actual transmitting the message. The second button will transmit the message, along with updating the crc32 value in hexadecimal on the client screen, and displaying the packet number that is sent. The client mush generate a correct crc32 checksum calculation as used by WinZip, PKZip, and the ethernet standard.

    The packet number display must start at count 0 and increment with each message sent.

    A button mush be provided to send an error message after the crc32 checksum has been calculated. This may be accomplished by changing the first letter in the Last Name field to Z after the crc32 checksum has been calculated.

    Only one character for gender (M or F).

    GPA must have two number after the decimal point (i.e. 3.95)

    Thank you very much from the bottom of my heart.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width