Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > win32net help

Reply
Thread Tools

win32net help

 
 
Shin
Guest
Posts: n/a
 
      01-13-2005
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
 
Reply With Quote
 
 
 
 
sp1d3rx@gmail.com
Guest
Posts: n/a
 
      01-14-2005
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Help Help Pentax S5i Help needed (Please) The Martian Digital Photography 14 06-20-2008 07:56 AM
Problem with win32net on Windows 2K Read Roberts Python 1 01-27-2005 09:29 PM
HELP! HELP! HELP! Opening Web Application Project Error =?Utf-8?B?dHJlbGxvdzQyMg==?= ASP .Net 0 02-20-2004 05:16 PM
win32net.NetUserChange vs XP Robin Becker Python 0 12-01-2003 10:37 AM
NetServerDiskEnum in win32net Uwe Becher Python 4 08-29-2003 02:51 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57