Broadcasting without "conn" command

Nov 5, 2012 at 8:34 AM

Hi,

Been looking tru the options..

How could I make a broadcast service that only takes a string, so the broadcaster just sends like:

ID=XXXX&CHECKSUM=YYYY#BEGIN#QQQQ#END#

without a command in front of the string..

Coordinator
Nov 5, 2012 at 4:48 PM

Please take a look at this sample:

http://supersocket.codeplex.com/SourceControl/changeset/view/afb7ebbc4034#QuickStart%2fCustomRequestInfoParser%2fCustomRequestInfoParser.cs

 

You can define your own RequestInfoParser according your format. If you don't want to deal requests by command pattern (because you don;t have request key?) , you can process the incomming requests by appserver's event "NewRequestReceived":

http://supersocket.codeplex.com/SourceControl/changeset/view/afb7ebbc4034#QuickStart%2fBasic%2fTelnetServer_ProcessRequest%2fProgram.cs

 

I suggest you to use SuperSocket 1.5, because it has better API than 1.4.