Menu

#4 suggestions about Class Socket

open
nobody
None
5
2004-05-12
2004-05-12
SevenCat
No

my boss use your code, and force me to use , yes,i'd
admit, they are nice code, but when i use Socket code, i
find it some times annoying.
for example.
i can't write code like this:
Socket _handle, because you foce me to use Socket
(int af,int type, int protocol), though at this time i don't
know the type and protocol, they should be read from
the configuration file.

second , i don't think the state field is useful, i suggest
use CSocket style wrap. the error message is not detail,
i always use WSAGetLasteError or error to acquire more
details about errors.

please help me ,
can give a
Socket(){_so=INVALID_SOCKET;} constructor?

Discussion

  • SevenCat

    SevenCat - 2004-05-12

    Logged In: YES
    user_id=1000605

    and our current project need to support IPV4 and IPV6, my
    boss tell me to modify the code, but if you have the plan to
    support IPV6, i 'll be very glad.

    and can i join the developers?

     
  • SevenCat

    SevenCat - 2004-05-12

    Logged In: YES
    user_id=1000605

    sorry ,very sorry ,
    i mix CPPCC with commoncpp2

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.