~ubuntu-branches/ubuntu/wily/julia/wily

« back to all changes in this revision

Viewing changes to src/support/socket.h

  • Committer: Package Import Robot
  • Author(s): Sébastien Villemot
  • Date: 2013-02-06 17:54:29 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20130206175429-13br5kqpkfjqdmre
Tags: 0.0.0+20130206.git32ff5759-1
* New upstream snapshot.
* debian/copyright: reflect upstream changes
* debian/rules: update get-orig-source to reflect upstream changes
   + Don't ship nginx
   + Adapt for new configure-random target in deps/Makefile
* Enable build of Tk wrapper.
   + debian/control: add build dependency on tk-dev
   + debian/rules: add tk rule to build-arch
* debian/julia.install: install VERSION and COMMIT files
* no-webrepl.patch: new patch
* Refresh other patches
* Add source override for config.status file under deps/random/

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef LLTSOCKET_H
2
 
#define LLTSOCKET_H
3
 
 
4
 
#ifdef WIN32
5
 
#include <winsock2.h>
6
 
#else
7
 
#include <netinet/in.h>
8
 
#include <netdb.h>
9
 
#include <sys/types.h>
10
 
#include <sys/socket.h>
11
 
#include <netinet/tcp.h>
12
 
#include <ifaddrs.h>
13
 
#include <netinet/in.h> 
14
 
#include <arpa/inet.h>
15
 
#endif
16
 
 
17
 
int open_tcp_port(short portno);
18
 
DLLEXPORT int open_any_tcp_port(short *portno);
19
 
DLLEXPORT int open_any_udp_port(short *portno);
20
 
DLLEXPORT int connect_to_host(char *hostname, short portno);
21
 
DLLEXPORT void getlocalip(char *buf, size_t len);
22
 
int connect_to_addr(struct sockaddr_in *host_addr);
23
 
 
24
 
#ifdef WIN32
25
 
void bzero(void *s, size_t n);
26
 
#endif
27
 
#ifndef WIN32
28
 
void closesocket(int fd);
29
 
#endif
30
 
 
31
 
#endif