socket only connection
import socket # client
a = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
host = 'host ip '
port = 'host port'
a.connect((host,port))import socket #server
a = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
host = 'host ip '
port = 'port'
a.bind((host,port))
a.listen(5)#5 is the no. of client at a time
socketclient,address = a.accept()
print('got a connetion from',address)
Also in C:
- oop244
- arduino internal pull up resistor
- arduino client disconnect
- how we can strore a nested structure values in arrays
- c check if char is an operator
- pass the pointer in C
- round robin algorithm in c
- convert string to lowercase in c
- es par
- fread
- fcfs disk scheduling in c
- simpy process return value
- fibonacci in c
- 233 pounds to inr
- desktop
- how to transform a char to ascii code in c
- !isdigit c
- vue cdn
- hello world program in c
- c rand range
- c defined value sum
- insertion sort
- c if int
- Declaring Variables in C