Quick Question: Can Flash Directly Use Sockets?

As the title says, I would like to know if Flash 8 or any version of flash can access sockets. For instance like winsock does. Using an IP and a port to send packets? I’ve seen it can connect to databases, but I haven’t seen anything with it working with sockets, for instance a P2P chat using only an IP and a port to send an receive messages.