简体   繁体   中英

SuperSocket - Get the full message appServer_NewRequestReceived event

How do I get the full message appServer_NewRequestReceived event. For example, if I send a message "0000858 5521113 GT855500" in requestInfo.Key is "0000858" and requestInfo.Body comes "5521113 GT855500". I wonder if there is a way where you can get the complete message passed on telnet?

Thanks

I managed to solve as follows:

public class MyAppServer : AppServer

public class CustomStringParser : IRequestInfoParser<StringRequestInfo>
{
    public StringRequestInfo ParseRequestInfo(string source)
    {
        return new StringRequestInfo("", source, new []{""});
    }
}

Thank you all

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM