Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 428 Bytes

Socket.md

File metadata and controls

8 lines (6 loc) · 428 Bytes

from socket import *

import socket

s=socket.socket(family=AF_INET,type=SOCK_STREAM,port=0)

# family=AF_BLUETOOTH - To create a bluetooth socket

# Reasons that lead to unsuccessful socket execution.

# If you don't have permission to access to a particular port as a particularuser, you wont be able to bind a particular socket or doing a network bound communication. You need to perfonrm sufficient error handling.