Map data from a network socket to a serial port