Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by LinuxGeek247

  1. LinuxGeek247

    C# Socket and It's Handle

    I come from a *nix socket programming background, and there you could just pass the actual socket file descriptor which is just an unsigned int. I don't think this will work in your case though. I would just create a new thread to handle the request.
  2. LinuxGeek247

    using a class?

    There are a couple of ways but the most common approach is by using sockets. Check out System.net.sockets for not only the socket class itself but the TcpClient class which is really quite useful. Luckily, c# seems to abstract away :) most of the underlying stuff needed for socket programming...
  3. LinuxGeek247

    using a class?

    You instantiate objects in c# like in java. Actually, since you are a c++ guy, it's like defining a pointer to an object then instantiating the object by creating a new one. Here is an example: C#/Java SomeClass objMyObject = new SomceClass("someargs"); Which is pretty much equivalent to...
  4. LinuxGeek247

    using a class?

    First remove the ; at the end of the class declaration. It's no longer needed. As for the public:/private: I know it's no longer needed and possible no longer even legal. You would want to write it loike this: class aClass { public aClass(int iniInt){ theInt=iniInt; } public...

Part and Inventory Search

Back
Top