title: C++ how to convert ip address to bytes?
body: <p>How would I convert an ip address into bytes in C++? Basically how do I parse the IP address? For example, if I have a string equal to <code>121.122.123.124</code>. 
  I need to parse this such that <code>byte1 = 121</code>, <code>byte2 = 122</code>, <code>byte3 = 123</code>, <code>byte4 = 124</code>.</p>