Exactly, I'd like to be able to play at 2 players using 2 MAME, on same machine or not. It's why my code is based on socket.

I added

/bus/wswan/serial.cpp

with
Code
class ws_serial_device : public device_t
...
    required_device<ws_cable_link_device> m_cable_link;


class ws_cable_link_device : public device_t



it's required_device that's bug me

of course if comm_localhost/comm_remotehost aren't defined at commandLine, it won't work but I wonder how i could let the player choose to activate it or not...
I doubt adding an option on commandLine, specific to one driver is expected....