Server session gets closed after starting client session

Server session gets closed after starting client session

Postby bbhatpramod » Thu Apr 24, 2014 6:32 am

I have IDLE for Python scripting. I am trying send a message from client script to server and display on the screen.

But when I run the client script, the server session gets closed and finally ends up in giving an error
Code: Select all
Traceback (most recent call last): File "C:\Users\eprambh\Desktop\Python\client_socket.py", line 10, in clnt.send(enc) OSError: [WinError 10057] A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied


How can I make the server-client communication possible on IDLE for Python ?
Last edited by Mekire on Thu Apr 24, 2014 6:51 am, edited 1 time in total.
Reason: First post lock; code tags arround traceback.
bbhatpramod
 
Posts: 1
Joined: Thu Apr 24, 2014 6:31 am

Return to Networking

Who is online

Users browsing this forum: No registered users and 1 guest