Thread: Any socket programming tutorial in .NET?

  1. #1
    Ugly C Lover audinue's Avatar
    Join Date
    Jun 2008
    Location
    Indonesia
    Posts
    489

    Any socket programming tutorial in .NET?

    Help!

    The example in MSDN is confusing...

    And I lost in Google...

    (>_<")

    Anybody know good socket tutorial (a simple one) in .NET?

    There is something called backlog in the parameters, what it is by the way?
    Last edited by audinue; 08-02-2008 at 08:12 PM.

  2. #2
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675
    C# Sockets Tutorials

    MSDN - Socket.Listen method:
    Quote Originally Posted by MSDN
    The backlog parameter specifies the number of incoming connections that can be queued for acceptance.
    See section 4.14 here for a good explanation of the backlog parameter.

  3. #3
    Ugly C Lover audinue's Avatar
    Join Date
    Jun 2008
    Location
    Indonesia
    Posts
    489
    Thank you, rags_to_riches.

    http://www.developerfusion.co.uk/show/3918/3/Nice one

    backlog,... Why they don't use maxConnection term instead?

    I think I'll switch to .NET technology from native C, even they are slower (T_T")
    They provide a LOT of API that easy to use (people say).

    I just wondering why C# / C++ syntax become complex?
    Something like Delegate, why they don't use virtual functions instead?
    It makes our code looks ugly after all... *sob* we need to explain more to our friend for that.

  4. #4
    Registered User valaris's Avatar
    Join Date
    Jun 2008
    Location
    RING 0
    Posts
    507
    Mmm because a delegate is in no way related to a virtual function? Delegates are type-safe function pointers pretty much.

  5. #5
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    Instead of delegates you can try lambda functions. You can declare a delegate like a function and assign that to the eventlistener that handles it, or do it inline, or use a lambda.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can anyone send me C Socket Programming Tutorial for a beginner?
    By forumuser in forum Networking/Device Communication
    Replies: 1
    Last Post: 02-26-2009, 11:13 AM
  2. multiple errors generated by socket headers
    By nocturna_gr in forum Windows Programming
    Replies: 5
    Last Post: 12-16-2007, 06:33 PM
  3. migrate from .Net 2.0 to .Net 3.0
    By George2 in forum C# Programming
    Replies: 3
    Last Post: 07-25-2007, 04:07 AM
  4. .net
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 02-15-2002, 01:15 AM
  5. Visual J#
    By mfc2themax in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 10-08-2001, 02:41 PM