summaryrefslogtreecommitdiff
path: root/core/network.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-07-24 05:26:03 -0700
committerirungentoo <irungentoo@gmail.com>2013-07-24 05:26:03 -0700
commit57e7ed7c10927858e1ee994111d3e5a3516cd9f0 (patch)
treef36749ee3e277f3c04091821374596797dfbaa42 /core/network.h
parent3b53bc3218a8ffd149d4a93bb62becab41da7ae1 (diff)
parent92398844a05bf5f0ce4333e0d4bd03c6e6633f77 (diff)
Merge pull request #99 from Astonex/master
Simple init_networking() error checking
Diffstat (limited to 'core/network.h')
-rw-r--r--core/network.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/network.h b/core/network.h
index 6f140d0c..62169d88 100644
--- a/core/network.h
+++ b/core/network.h
@@ -121,10 +121,9 @@ int receivepacket(IP_Port * ip_port, uint8_t * data, uint32_t * length);
121 ip must be in network order EX: 127.0.0.1 = (7F000001) 121 ip must be in network order EX: 127.0.0.1 = (7F000001)
122 port is in host byte order (this means don't worry about it) 122 port is in host byte order (this means don't worry about it)
123 returns 0 if no problems 123 returns 0 if no problems
124 TODO: add something to check if there are errors */ 124 returns -1 if there were problems */
125int init_networking(IP ip ,uint16_t port); 125int init_networking(IP ip ,uint16_t port);
126 126
127
128/* function to cleanup networking stuff(doesn't do much right now) */ 127/* function to cleanup networking stuff(doesn't do much right now) */
129void shutdown_networking(); 128void shutdown_networking();
130 129