Menu

[r635]: / trunk / lispbuilder-net / cffi / net.lisp  Maximize  Restore  History

Download this file

73 lines (55 with data), 1.8 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
(in-package #:lispbuilder-net-cffi)
(defconstant NET_STARTUP_FAILED -1)
(defconstant NET_CLEANUP_FAILED -2)
(defconstant NET_BIND_FAILED -3)
(defconstant NET_CREATE_SOCKET_FAILED -4)
(defconstant NET_GET_HOST_BY_NAME_FAILED -5)
(defconstant NET_LISTEN_FAILED -6)
(defconstant NET_ACCEPT_FAILED -7)
(defconstant NET_CLOSE_SOCKET_FAILED -8)
(defconstant NET_CONNECT_FAILED -9)
(defconstant NET_WOULD_BLOCK -10)
(defconstant NET_WRITE_FAILED -11)
(defconstant NET_READ_FAILED -12)
(defconstant NET_LOOP_FAILED -13)
(defcfun ("netRegisterReadCallback" netRegisterReadCallback) :void
(callback :pointer))
(defcfun ("netRegisterWriteCallback" netRegisterWriteCallback) :void
(callback :pointer))
(defcfun ("netRegisterErrorCallback" netRegisterErrorCallback) :void
(callback :pointer))
(defcfun ("netStartup" netStartup) :int)
(defcfun ("netCleanup" netCleanup) :int)
(defcfun ("netCreateSocket" netCreateSocket) :int
(socketHandle :pointer))
(defcfun ("netCreateServerSocket" netCreateServerSocket) :int
(address :string)
(port :int)
(socketHandle :pointer))
(defcfun ("netListen" netListen) :int
(serverSocket :int)
(backlog :int))
(defcfun ("netConnect" netConnect) :int
(socket :int)
(address :string)
(port :int))
(defcfun ("netAccept" netAccept) :int
(serverSocket :int)
(ipAddress :pointer)
(socketHandle :pointer))
(defcfun ("netCloseSocket" netCloseSocket) :int
(socket :int))
(defcfun ("netWait" netWait) :void
(millisecondsTimeout :int))
(defcfun ("netWrite" netWrite) :int
(socket :int)
(data :pointer)
(size :int))
(defcfun ("netRead" netRead) :int
(socket :int)
(data :pointer)
(size :int))
(defcfun ("netSleep" netSleep) :void
(milliseconds :int))
(defcfun ("netFree" netFree) :void
(pointer :pointer))
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.