public void Send(StateObject state) { RealTimeProtocol protocol = new RealTimeProtocol(state); server.Send(State.workSocket, protocol.AppendBody(state.Body)); }
public void Send(Verb verb, string nameMethod, string section, string body) { RealTimeProtocol protocol = new RealTimeProtocol(verb, nameMethod, section, body.Length); server.Send(State.workSocket, protocol.AppendBody(body)); }