Results 1 to 5 of 5

Thread: Socket problem.

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Location
    Palermo, Italy
    Posts
    325

    Socket problem.

    I have a simple socket example program. It uses the async method to retrieve data from the socket. But if I change that code in the sync method, I get an error saying the buffer is a null reference...

    Here's the project I downloaded don't remember where
    Attached Files Attached Files
    Learn, this is the Keyword...

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Location
    Palermo, Italy
    Posts
    325
    *** BUMP ***
    Learn, this is the Keyword...

  3. #3
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    if u have the async one why would u want to have a sync one?
    \m/\m/

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Location
    Palermo, Italy
    Posts
    325
    Because I want to send (receive) a lot of consequential messages:
    Send: OPEN
    Receive: If Ok then
    Send 2nd Mess after OK Mess.
    else
    Send 2nd Mess after No OK.
    and so on...

    It's a background job, as long as this procedure is not in the main thread I have no problem with the sync method. But I don't know I to manage this code with the async method...

    Any suggestion?
    Thx, Xmas.
    Learn, this is the Keyword...

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2002
    Location
    Palermo, Italy
    Posts
    325
    Made the async method stopping until all data was received...
    Learn, this is the Keyword...

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