Skip to content

Instantly share code, notes, and snippets.

@bcho
Created October 30, 2012 12:40
Show Gist options
  • Select an option

  • Save bcho/3979959 to your computer and use it in GitHub Desktop.

Select an option

Save bcho/3979959 to your computer and use it in GitHub Desktop.
under main:
MsgCmd4echo 0x8054c20
InitInstance 0x804e150
daemonInitv 0x804e9c0
createThread 0x804c080
LogMsg 0x805c560
ExitInstance 0x804e310
parseCommandLine 0x804c110
under parseCommandLine:
MsgCmd4echo 0x8054c20 (default option)
MsgCmd4Kill 0x8054ba0 (-k)
under MsgCmd4Kill:
MsgCmdC1EiiPhPi 0x8054a00
MsgCmd4send 0x80530d0
MsgCmdD1Ev 0x80531c0
under MsgCmd4echo:
MsgCmdC1EiiPhPi 0x8054a00 (maybe start action, open socket)
MsgCmd4send 0x80530d0
MsgCmd4recv 0x8052ee0
MsgCmd6getCmd 0x8052b90 (I don't know what it is.)
MsgCmdD1Ev 0x80531c0 (maybe end action or default action, close socket)
under MsgCmdC1EiiPhPi:
(some ACE stuffs)
ACE_INET_Addr
ACE_SOCK
PacketItem12setAttrValueEiPhi 0x8054670
createPacketR11PacketItemPhRi 0x8053560
unser MsgCmdD1Ev:
ACE_SOCK5close
ACE_INET_Addr
under MsgCmd4send:
inet_addr@plt (converts the Internet host address `cp` from IPv4
numbers-and-dots notation into binary data in network byte order
)
ACE_INET_addr
MsgCmd4sendEiRK11sockaddr_in 0x8052f50
under MsgCmd4recv:
ACE_Time_Value9normalize
ACE_SOCK_Dgram4recv ACE_ADDri ACE_Time_Value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment