3
3
* Diverse Bristol midi routines.
4
* Copyright (c) by Nick Copeland <nickycopeland@hotmail.com> 1996,2008
4
* Copyright (c) by Nick Copeland <nickycopeland@hotmail.com> 1996,2009
7
7
* This program is free software; you can redistribute it and/or modify
38
38
extern int initControlPort();
41
bristolMidiTCPOpen(char *devname, int flags, int chan, int msgs,
41
bristolMidiTCPOpen(char *host, int flags, int chan, int msgs,
42
42
int (*callback)(), void *param, int dev, int handle)
44
/* printf("bristolMidiTCPOpen(%s, %i, %i)\n", devname, chan, dev); */
44
/* printf("bristolMidiTCPOpen(%s, %i, %i)\n", host, chan, dev); */
46
46
* See if we are active or passive.
51
51
* This is the server, or in our case the engine, side of operations.
52
52
* we need to open a listening socket, and bind it to an address.
54
return(bristolMidiTCPPassive(devname, flags, chan, msgs, callback,
54
return(bristolMidiTCPPassive(host, flags, chan, msgs, callback,
55
55
param, dev, handle));
58
58
* This is the client side, we should have a station address in "dev"
59
59
* and we connect to this address.
61
return(bristolMidiTCPActive(devname, flags, chan, msgs, callback,
61
return(bristolMidiTCPActive(host, flags, chan, msgs, callback,
62
62
param, dev, handle));
67
bristolMidiTCPActive(char *devname, int conntype, int chan, int msgs,
67
bristolMidiTCPActive(char *host, int conntype, int chan, int msgs,
68
68
int (*callback)(), void *param, int dev, int handle)
71
printf("bristolMidiTCPActive(%i, %i)\n", dev, handle);
71
printf("bristolMidiTCPActive(%i, %i)\n", host, handle);
74
74
if (conntype & BRISTOL_CONN_UNIX)