Python - - Any abstract Base class for a networking client suggestions?

Hi, in Python
It is not totally obvious, to me, how my abstract bass class for my RTS client should look... Threading included
In Java, it is as below, what would it look like in Python? processNewGameState() is the abstract method
Thread - Do I make my own method called run and call it from the __main__ region?

import java.io.*;
import java.net.*;
import java.util.Random;


public abstract class GSclient extends Thread{

int clientCount=0;
	int clientCountExpected;	
	public static int SERVER_PORT_BASE=1027;
	public static byte MSG_HELO=1;
	public static byte MSG_START=5;
	public static byte IN_GAME_MSG=4;
	public static byte GAME_MSG_MOVE=8;
	public static byte GAME_MSG_CREATE=16;
	public static int MSG_SIZE = 4098;

	public abstract void processNewGameState();
	public GSclient(int cliNum, InetAddress serveraddress) {
		
		clientNumber=cliNum;
		serverAddress= serveraddress;
		
		start();
	}

Open in new window


My run() Thread method will receive incoming game-state messages and call the process method on each.
I assume the TCP and UDP receiving and analyzing code won't be too out-there
I can do the client networking, no problem.

Thanks
LVL 1
beavoidAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

raj3060Commented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
beavoidAuthor Commented:
Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.