Replaced get_pico_socket() with more generic code. Added checksum note in libzt.h

This commit is contained in:
Joseph Henry
2017-09-11 14:00:44 -07:00
parent 7992e67f85
commit d1396c9917
3 changed files with 34 additions and 56 deletions

View File

@@ -527,6 +527,9 @@ namespace ZeroTier {
// Send data to a specified host
int VirtualTap::SendTo(VirtualSocket *vs, const void *buf, size_t len, int flags, const struct sockaddr *addr, socklen_t addrlen)
{
/* FIXME: There is a call to *_Connect for each send, we should probably figure out a better way to do this,
possibly consult the stack for "connection" state */
// TODO: flags
int err = 0;
#if defined(STACK_PICO)