Answers for "can a socket connection application be connected to multiple socket servers"

C
0

socket only connection

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)
Posted by: Guest on October-07-2020

Code answers related to "can a socket connection application be connected to multiple socket servers"

Code answers related to "C"

Browse Popular Code Answers by Language