CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Threaded View

  1. #4
    Join Date
    Feb 2004
    Posts
    21
    I haven't looked at your code but i am writing something like that and i'll tell you what i am doing: i use my own class for connection(that i've write, wrapping the standard functions send(), connect(), etc.) and if there is an error i throw an exeption. I put every user that connects to the system in separate thread and if this user close the connection(no matter whether this is normaly or because of error-this is in try catch block) i clear all reserved memory for this user(and exit from the user thread, not from the main one). So use multithreading.
    I hope that i am not wrong with the subject If i am sorry
    Last edited by defiler_z; March 11th, 2004 at 04:36 PM.

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

Featured