add socket and network data types and socket functions