c# - Acknowledging concox GT06N gps device after receiving login packet -


i receiving login packet concox gt06n gps device.also have read it.but when trying send response packet(acknowledgement) device seems response packet not getting delivered. because after sending acknowledgement not receiving location packet device. below code using:-

tcpclient cli = new tcpclient();  ipendpoint deviceipe = new ipendpoint(ipaddress.parse(system.configuration.configurationmanager.appsettings["cid"].tostring())   , convert.toint32(system.configuration.configurationmanager.appsettings["cport"])); cli.connect(deviceipe); logsys.enqueue("tcp client created"); using (networkstream clientstream = cli.getstream()) {     byte[] data = (byte[])sdata1.dequeue();     string cip = suser1.dequeue().tostring();     string[] acip = new string[2];     if (cip != "")     {         acip = cip.split(':');     }     technocompacket packet = new technocompacket(data);      string rdata = packet.stringtobytearray(data);      logsys.enqueue("response packet send :" + rdata);      byte[] tosend = encoding.ascii.getbytes(rdata);       asciiencoding encoder = new asciiencoding();     byte[] buffer = encoder.getbytes(rdata);     clientstream.write(buffer, 0, buffer.length);     logsys.enqueue("response packet sent successfully"); } 

please me.i stuck.

thanks in advance


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -