transport.h 1.1 KB

123456789101112131415161718192021222324252627282930
  1. /*******************************************************************************
  2. * Copyright (c) 2014 IBM Corp.
  3. *
  4. * All rights reserved. This program and the accompanying materials
  5. * are made available under the terms of the Eclipse Public License v1.0
  6. * and Eclipse Distribution License v1.0 which accompany this distribution.
  7. *
  8. * The Eclipse Public License is available at
  9. * http://www.eclipse.org/legal/epl-v10.html
  10. * and the Eclipse Distribution License is available at
  11. * http://www.eclipse.org/org/documents/edl-v10.php.
  12. *
  13. * Contributors:
  14. * Ian Craggs - initial API and implementation and/or initial documentation
  15. * Sergio R. Caprile - "commonalization" from prior samples and/or documentation extension
  16. *******************************************************************************/
  17. #ifndef TRANSPORT_H
  18. #define TRANSPORT_H
  19. int transport_open(char* serverip, int port);
  20. int transport_close(int sock);
  21. int transport_receive(int sock);
  22. int transport_send(int sock, unsigned char* buf, int buflen);
  23. int transport_getdata(unsigned char *buf, int cnt);
  24. #endif