User360451555 posted
Hi
Am trying to send bytes of a file to be printed to a Network located printer. The printer Led lamp blinks when i send the file though i get no pages printed out. Anything am doing wrong....you think?
var ep = new IPEndPoint(IPAddress.Parse("192.168.1.210"), 9100);
using (var sock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp))
{
sock.Connect(ep);
using (var ns = new NetworkStream(sock))
{
await ns.WriteAsync(response, 0, response.Length, token);
}
}