2 * Copyright (c) 2012, Frank Lahm <franklahm@googlemail.com>
3 * All rights reserved. See COPYRIGHT.
8 #endif /* HAVE_CONFIG_H */
13 #include <atalk/dsi.h>
15 DSI *dsi_init(AFPObj *obj, const char *hostname, const char *address, const char *port)
19 if ((dsi = (DSI *)calloc(1, sizeof(DSI))) == NULL)
22 dsi->attn_quantum = DSI_DEFQUANT;
23 dsi->server_quantum = obj->options.server_quantum;
24 dsi->dsireadbuf = obj->options.dsireadbuf;
26 /* currently the only transport protocol that exists for dsi */
27 if (dsi_tcp_init(dsi, hostname, address, port) != 0) {