SocketCommand ReceiveAll

Feb 22, 2012 at 9:45 AM


I have been looking at SuperSocket and it looks really good, I only wonder one thing,

lets say i have an UDP server that listens to incoming connections, how do I implement a Receive All, the incoming commands are mostly 

different, i analyze the actual content to know what to do with it, basically it is not command based.


Is there a genereal StringCommand that receives all ?



Feb 22, 2012 at 10:11 AM

Could I use HandleUnknownCommand in AppSession ?

Feb 22, 2012 at 11:09 AM

The command info can be customized, you can define your own command info type base on interface ICommandInfo.

Feb 22, 2012 at 11:36 AM

Is there any documentation on how to implement a sample ICommandInfo ?

Feb 22, 2012 at 11:38 AM

You also can use BinaryCommandInfo directly!

Feb 22, 2012 at 12:12 PM

Hi kerryjiang,


I am trying to figure out how to implement this.. I basically need a UDP server that receives all, not base on any commands..  Added the following..


public class MyUdpSession : AppSession<MyUdpSession>
        public override void StartSession()

        public override void HandleExceptionalError(Exception e)

public class MyUdpServer : AppServer<MyUdpSession>
public class MyIncomingMessage : ICommandInfo<MyUdpSession>

I am not sure on how to implement this, could you explain or direct me to a more detailed documentation or example on how to implement a 
similar feature..

Thank you in advance..


Feb 22, 2012 at 12:14 PM

Please take a look at the project CustomProtocol and GPSSocketServer project in QuickStart!

Feb 22, 2012 at 12:18 PM

Thanks !