win32net help

Discussion in 'Python' started by Shin, Jan 13, 2005.

  1. Shin

    Shin Guest

    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
    Shin, Jan 13, 2005
    #1
    1. Advertising

  2. Shin

    Guest

    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.
    , Jan 14, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?dHJlbGxvdzQyMg==?=

    HELP! HELP! HELP! Opening Web Application Project Error

    =?Utf-8?B?dHJlbGxvdzQyMg==?=, Feb 20, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    747
    =?Utf-8?B?dHJlbGxvdzQyMg==?=
    Feb 20, 2004
  2. Harvey
    Replies:
    0
    Views:
    677
    Harvey
    Jul 16, 2004
  3. Uwe Becher

    NetServerDiskEnum in win32net

    Uwe Becher, Aug 28, 2003, in forum: Python
    Replies:
    4
    Views:
    382
    Uwe Becher
    Aug 29, 2003
  4. Robin Becker

    win32net.NetUserChange vs XP

    Robin Becker, Dec 1, 2003, in forum: Python
    Replies:
    0
    Views:
    337
    Robin Becker
    Dec 1, 2003
  5. Read Roberts

    Problem with win32net on Windows 2K

    Read Roberts, Jan 27, 2005, in forum: Python
    Replies:
    1
    Views:
    440
    Kartic
    Jan 27, 2005
Loading...

Share This Page