By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,818 Members | 1,262 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,818 IT Pros & Developers. It's quick & easy.

win32net help

P: n/a
Hi all, I'm new to the python language and I'm having trouble. I'm
writing a basic chat script...real basic. It's client-server based and
I'm wanting the roles to change -- client becomes server and vice versa.
The problem is when I do this, the server switches to the client no
problem. However, when the client tries to switch to server mode, it
can't because the previous server is still bound to the socket it wants
to use. I've tried using socket.closesocket and socket.DisconnectEx but
nothing works. Any suggestions? Or could you point me to documentation
showing supported commands for win32net? Any help is greatly appreciated.

-Shin
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Have you tried using UDP instead of TCP? Also, it is common practice to
choose a random port over 1024 for opening a connection to a remote
server.

Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.